diff options
Diffstat (limited to 'config.cgi')
-rwxr-xr-x | config.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config.cgi b/config.cgi index 2c82fdc59..f83ffcdf3 100755 --- a/config.cgi +++ b/config.cgi @@ -107,7 +107,7 @@ $vars->{'closed_status'} = \@closed_status; # Generate a list of fields that can be queried. my @fields = @{Bugzilla::Field->match({obsolete => 0})}; # Exclude fields the user cannot query. -if (!Bugzilla->user->is_timetracker) { +if (!$user->is_timetracker) { @fields = grep { $_->name !~ /^(estimated_time|remaining_time|work_time|percentage_complete|deadline)$/ } @fields; } $vars->{'field'} = \@fields; |