diff options
author | Byron Jones <glob@mozilla.com> | 2015-07-17 07:01:03 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-07-17 07:01:03 +0200 |
commit | 22d71ed7fe2599a9ee269bafe43df8094d34755d (patch) | |
tree | d1b0b53e2d72b5a99d5df80f03fe93e5bf74a145 /query.cgi | |
parent | a124414c084218a07f9fddc056e4944fd62d9141 (diff) | |
download | bugzilla-22d71ed7fe2599a9ee269bafe43df8094d34755d.tar.gz bugzilla-22d71ed7fe2599a9ee269bafe43df8094d34755d.tar.xz |
Bug 1180571 - remove the ability to search attachment data
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -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; |