From 6ead1a2575509273484fd9c3a9186ebec2f338b8 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 9 Nov 2009 19:09:03 +0000 Subject: Bug 524669: Allow every simple field in fielddefs to be specified directly in search URLs. Patch by Max Kanat-Alexander r=gerv, a=mkanat --- query.cgi | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'query.cgi') diff --git a/query.cgi b/query.cgi index d07773bde..fd18bab67 100755 --- a/query.cgi +++ b/query.cgi @@ -266,10 +266,8 @@ $vars->{'resolution'} = Bugzilla::Field->new({name => 'resolution'})->legal_valu my @fields = Bugzilla->get_fields({ obsolete => 0 }); # If we're not in the time-tracking group, exclude time-tracking fields. -if (!Bugzilla->user->in_group(Bugzilla->params->{'timetrackinggroup'})) { - foreach my $tt_field (qw(estimated_time remaining_time work_time - percentage_complete deadline)) - { +if (!Bugzilla->user->is_timetracker) { + foreach my $tt_field (TIMETRACKING_FIELDS) { @fields = grep($_->name ne $tt_field, @fields); } } -- cgit v1.2.3-24-g4f1b