diff options
author | Pami Ketolainen <pami.ketolainen@gmail.com> | 2013-04-11 15:18:07 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-04-11 15:18:07 +0200 |
commit | 0b740b2896e314ea4237600a075bf972faf7bca2 (patch) | |
tree | b3a1a05561965fb84269d6110e073cf98fd3f8ab | |
parent | 8bf2d1647e950cb36bf04f061182b44b7fe04474 (diff) | |
download | bugzilla-0b740b2896e314ea4237600a075bf972faf7bca2.tar.gz bugzilla-0b740b2896e314ea4237600a075bf972faf7bca2.tar.xz |
Bug 860723: Custom fields are shown twice in report axis selectors
r/a=LpSolit
-rwxr-xr-x | query.cgi | 7 | ||||
-rw-r--r-- | template/en/default/search/search-report-select.html.tmpl | 7 |
2 files changed, 0 insertions, 14 deletions
@@ -248,13 +248,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'); diff --git a/template/en/default/search/search-report-select.html.tmpl b/template/en/default/search/search-report-select.html.tmpl index 5e5db06e2..44425898a 100644 --- a/template/en/default/search/search-report-select.html.tmpl +++ b/template/en/default/search/search-report-select.html.tmpl @@ -39,12 +39,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 %] |