Commit b043f1bb authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 617641: Using any of the "_realname" columns in report.cgi was throwing

an error. r=LpSolit, a=mkanat
parent 15358df9
......@@ -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}) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment