From 46e5d925026ccde28118bfcf28061c75f188b066 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 26 Nov 2012 20:20:29 +0100 Subject: Bug 718289: The deadline field should be visible by non-members of the timetracking group r=dkl a=LpSolit --- config.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.cgi') 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 = ( -- cgit v1.2.3-24-g4f1b