From e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 17 Aug 2011 00:45:22 +0200 Subject: Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi r=timello a=LpSolit --- config.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.cgi') 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; -- cgit v1.2.3-24-g4f1b