summaryrefslogtreecommitdiffstats
path: root/query.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-08-17 00:45:22 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-08-17 00:45:22 +0200
commite15dcf488f8bbf1fef2cd0a7001385f7a95e8d59 (patch)
tree4a46e8d94f53faf98923ca7509704f5e1fdec541 /query.cgi
parent7a8598938d6976acb5f6bde6c86be8b65d1df8da (diff)
downloadbugzilla-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-xquery.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/query.cgi b/query.cgi
index 0182f66eb..686d9db36 100755
--- a/query.cgi
+++ b/query.cgi
@@ -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);
}