diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-04-05 01:54:16 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-04-05 01:54:16 +0200 |
commit | b043f1bb53bd26a4b001fe92c88ae981a1e7686d (patch) | |
tree | cb8d29a4381ba9c9145f0e80dfcafaba47d34275 /report.cgi | |
parent | 15358df929791346fbd8cd7876b089e1fb7e646d (diff) | |
download | bugzilla-b043f1bb53bd26a4b001fe92c88ae981a1e7686d.tar.gz bugzilla-b043f1bb53bd26a4b001fe92c88ae981a1e7686d.tar.xz |
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-x | report.cgi | 6 |
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}) { |