summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-17 07:01:03 +0200
committerByron Jones <glob@mozilla.com>2015-07-17 07:01:03 +0200
commit22d71ed7fe2599a9ee269bafe43df8094d34755d (patch)
treed1b0b53e2d72b5a99d5df80f03fe93e5bf74a145 /query.cgi
parenta124414c084218a07f9fddc056e4944fd62d9141 (diff)
downloadbugzilla-22d71ed7fe2599a9ee269bafe43df8094d34755d.tar.gz
bugzilla-22d71ed7fe2599a9ee269bafe43df8094d34755d.tar.xz
Bug 1180571 - remove the ability to search attachment data
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi13
1 files changed, 3 insertions, 10 deletions
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;