diff options
author | mkanat%bugzilla.org <> | 2009-11-09 20:09:03 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-11-09 20:09:03 +0100 |
commit | 6ead1a2575509273484fd9c3a9186ebec2f338b8 (patch) | |
tree | 157eeb3a8e5797835478e0e8f39b7767c40bd6e0 /query.cgi | |
parent | 6188fad092e9f347a111ed30d0e21bb048d69998 (diff) | |
download | bugzilla-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-x | query.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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); } } |