From 22d71ed7fe2599a9ee269bafe43df8094d34755d Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Fri, 17 Jul 2015 13:01:03 +0800 Subject: Bug 1180571 - remove the ability to search attachment data --- query.cgi | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index be0462d8d..47c6a87d6 100755 --- a/query.cgi +++ b/query.cgi @@ -208,16 +208,9 @@ $vars->{'bug_severity'} = Bugzilla::Field->new({name => 'bug_severity'})->legal_ $vars->{'resolution'} = Bugzilla::Field->new({name => 'resolution'})->legal_values; # Boolean charts -my @fields = @{ Bugzilla->fields({ obsolete => 0 }) }; - -# If we're not in the time-tracking group, exclude time-tracking fields. -if (!Bugzilla->user->is_timetracker) { - foreach my $tt_field (TIMETRACKING_FIELDS) { - @fields = grep($_->name ne $tt_field, @fields); - } -} - -@fields = sort {lc($a->description) cmp lc($b->description)} @fields; +my @fields = + sort { lc($a->description) cmp lc($b->description) } + values %{ Bugzilla::Search::search_fields({ obsolete => 0 }) }; unshift(@fields, { name => "noop", description => "---" }); $vars->{'fields'} = \@fields; -- cgit v1.2.3-24-g4f1b