aboutsummaryrefslogtreecommitdiffstats
path: root/config.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-11-26 20:20:29 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-11-26 20:20:29 +0100
commit46e5d925026ccde28118bfcf28061c75f188b066 (patch)
treed9d95ff2e945ba67f1b8368cc33d24e38cd5dc6f /config.cgi
parentccf2d3e5e476ce72cb95894b68358950bfa1d24b (diff)
downloadbugs-46e5d925026ccde28118bfcf28061c75f188b066.tar
bugs-46e5d925026ccde28118bfcf28061c75f188b066.tar.gz
bugs-46e5d925026ccde28118bfcf28061c75f188b066.tar.bz2
bugs-46e5d925026ccde28118bfcf28061c75f188b066.tar.xz
bugs-46e5d925026ccde28118bfcf28061c75f188b066.zip
Bug 718289: The deadline field should be visible by non-members of the timetracking group
r=dkl a=LpSolit
Diffstat (limited to 'config.cgi')
-rwxr-xr-xconfig.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.cgi b/config.cgi
index c4f64a007..4c0881a11 100755
--- a/config.cgi
+++ b/config.cgi
@@ -100,7 +100,9 @@ $vars->{'closed_status'} = \@closed_status;
my @fields = @{Bugzilla::Field->match({obsolete => 0})};
# Exclude fields the user cannot query.
if (!$user->is_timetracker) {
- @fields = grep { $_->name !~ /^(estimated_time|remaining_time|work_time|percentage_complete|deadline)$/ } @fields;
+ foreach my $tt_field (TIMETRACKING_FIELDS) {
+ @fields = grep { $_->name ne $tt_field } @fields;
+ }
}
my %FIELD_PARAMS = (