Bug 860723: Custom fields are shown twice in report axis selectors

r/a=LpSolit
4.4
Pami Ketolainen 2013-04-11 15:17:18 +02:00 committed by Frédéric Buclin
parent 22ea209c43
commit 222ed9d661
2 changed files with 0 additions and 14 deletions

View File

@ -246,13 +246,6 @@ if (($cgi->param('query_format') || $cgi->param('format') || "")
$vars->{'category'} = Bugzilla::Chart::getVisibleSeries();
}
if ($cgi->param('format') && $cgi->param('format') =~ /^report-(table|graph)$/) {
# Get legal custom fields for tabular and graphical reports.
my @custom_fields_for_reports =
grep { $_->type == FIELD_TYPE_SINGLE_SELECT } Bugzilla->active_custom_fields;
$vars->{'custom_fields'} = \@custom_fields_for_reports;
}
$vars->{'known_name'} = $cgi->param('known_name');
$vars->{'columnlist'} = $cgi->param('columnlist');

View File

@ -25,12 +25,5 @@
[% " selected" IF default.$name.0 == field %]>
[% field_descs.$field || field FILTER html %]</option>
[% END %]
[%# Single-select fields are also valid column names. %]
[% FOREACH field = custom_fields %]
<option value="[% field.name FILTER html %]"
[% " selected" IF default.$name.0 == field.name %]>
[% field.description FILTER html %]</option>
[% END %]
</select>
[% END %]