diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 00:45:22 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2011-08-17 00:45:22 +0200 |
commit | e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 (patch) | |
tree | 4a46e8d94f53faf98923ca7509704f5e1fdec541 /query.cgi | |
parent | 7a8598938d6976acb5f6bde6c86be8b65d1df8da (diff) | |
download | bugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.gz bugzilla-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.xz |
Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi
r=timello a=LpSolit
Diffstat (limited to 'query.cgi')
-rwxr-xr-x | query.cgi | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -202,7 +202,7 @@ foreach my $val (editable_bug_fields()) { push @chfields, $val; } -if (Bugzilla->user->is_timetracker) { +if ($user->is_timetracker) { push @chfields, "work_time"; } else { @chfields = grep($_ ne "estimated_time", @chfields); @@ -221,7 +221,7 @@ $vars->{'resolution'} = Bugzilla::Field->new({name => 'resolution'})->legal_valu my @fields = @{ Bugzilla->fields({ obsolete => 0 }) }; # If we're not in the time-tracking group, exclude time-tracking fields. -if (!Bugzilla->user->is_timetracker) { +if (!$user->is_timetracker) { foreach my $tt_field (TIMETRACKING_FIELDS) { @fields = grep($_->name ne $tt_field, @fields); } |