aboutsummaryrefslogtreecommitdiffstats
path: root/report.cgi
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-04-04 16:54:16 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-04-04 16:54:16 -0700
commitb043f1bb53bd26a4b001fe92c88ae981a1e7686d (patch)
treecb8d29a4381ba9c9145f0e80dfcafaba47d34275 /report.cgi
parent15358df929791346fbd8cd7876b089e1fb7e646d (diff)
downloadbugs-b043f1bb53bd26a4b001fe92c88ae981a1e7686d.tar
bugs-b043f1bb53bd26a4b001fe92c88ae981a1e7686d.tar.gz
bugs-b043f1bb53bd26a4b001fe92c88ae981a1e7686d.tar.bz2
bugs-b043f1bb53bd26a4b001fe92c88ae981a1e7686d.tar.xz
bugs-b043f1bb53bd26a4b001fe92c88ae981a1e7686d.zip
Bug 617641: Using any of the "_realname" columns in report.cgi was throwing
an error. r=LpSolit, a=mkanat
Diffstat (limited to 'report.cgi')
-rwxr-xr-xreport.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/report.cgi b/report.cgi
index 60067c7af..749261973 100755
--- a/report.cgi
+++ b/report.cgi
@@ -312,9 +312,11 @@ $template->process("$format->{'template'}", $vars)
sub get_names {
my ($names, $isnumeric, $field_name) = @_;
-
my ($field, @sorted);
- $field = Bugzilla::Field->check($field_name) if $field_name;
+ $field = Bugzilla::Field->check($field_name)
+ # _realname fields aren't real Bugzilla::Field objects,
+ # but they are a valid axis.
+ if ($field_name && $field_name !~ /_realname$/);
if ($field && $field->is_select) {
foreach my $value (@{$field->legal_values}) {