summaryrefslogtreecommitdiffstats
path: root/report.cgi
diff options
context:
space:
mode:
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}) {