summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPami Ketolainen <pami.ketolainen@gmail.com>2013-04-11 15:18:07 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2013-04-11 15:18:07 +0200
commit0b740b2896e314ea4237600a075bf972faf7bca2 (patch)
treeb3a1a05561965fb84269d6110e073cf98fd3f8ab
parent8bf2d1647e950cb36bf04f061182b44b7fe04474 (diff)
downloadbugzilla-0b740b2896e314ea4237600a075bf972faf7bca2.tar.gz
bugzilla-0b740b2896e314ea4237600a075bf972faf7bca2.tar.xz
Bug 860723: Custom fields are shown twice in report axis selectors
r/a=LpSolit
-rwxr-xr-xquery.cgi7
-rw-r--r--template/en/default/search/search-report-select.html.tmpl7
2 files changed, 0 insertions, 14 deletions
diff --git a/query.cgi b/query.cgi
index bfb79e52c..26c26049d 100755
--- a/query.cgi
+++ b/query.cgi
@@ -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 %]