summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-11-09 20:09:03 +0100
committermkanat%bugzilla.org <>2009-11-09 20:09:03 +0100
commit6ead1a2575509273484fd9c3a9186ebec2f338b8 (patch)
tree157eeb3a8e5797835478e0e8f39b7767c40bd6e0 /query.cgi
parent6188fad092e9f347a111ed30d0e21bb048d69998 (diff)
downloadbugzilla-6ead1a2575509273484fd9c3a9186ebec2f338b8.tar.gz
bugzilla-6ead1a2575509273484fd9c3a9186ebec2f338b8.tar.xz
Bug 524669: Allow every simple field in fielddefs to be specified directly in search URLs.
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=gerv, a=mkanat
Diffstat (limited to 'query.cgi')
-rwxr-xr-xquery.cgi6
1 files changed, 2 insertions, 4 deletions
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);
}
}