]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 617641: Using any of the "_realname" columns in report.cgi was throwing
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Mon, 4 Apr 2011 23:54:16 +0000 (16:54 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Mon, 4 Apr 2011 23:54:16 +0000 (16:54 -0700)
an error.
r=LpSolit, a=mkanat

report.cgi

index 60067c7afcae4d64b12c21eb74badfa546821ab5..7492619736a28bbee26d56c409353af83c37a2be 100755 (executable)
@@ -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}) {