aboutsummaryrefslogtreecommitdiffstats
path: root/colchange.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 /colchange.cgi
parent7a8598938d6976acb5f6bde6c86be8b65d1df8da (diff)
downloadbugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar
bugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.gz
bugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.bz2
bugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.tar.xz
bugs-e15dcf488f8bbf1fef2cd0a7001385f7a95e8d59.zip
Bug 678970: Use $user and $cgi instead of Bugzilla->user and Bugzilla->cgi
r=timello a=LpSolit
Diffstat (limited to 'colchange.cgi')
-rwxr-xr-xcolchange.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/colchange.cgi b/colchange.cgi
index 844f7615c..c3741f623 100755
--- a/colchange.cgi
+++ b/colchange.cgi
@@ -53,7 +53,7 @@ use constant COLUMN_CLASSES => {
'Bugzilla::Keyword' => 'keywords',
};
-Bugzilla->login();
+my $user = Bugzilla->login();
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
@@ -77,7 +77,7 @@ foreach my $class (keys %{ COLUMN_CLASSES() }) {
delete $columns->{$column} if !$class->any_exist;
}
-if (!Bugzilla->user->is_timetracker) {
+if (!$user->is_timetracker) {
foreach my $column (TIMETRACKING_FIELDS) {
delete $columns->{$column};
}
@@ -138,7 +138,7 @@ if (defined $cgi->param('rememberedquery')) {
$vars->{'message'} = "change_columns";
if ($cgi->param('save_columns_for_search')
- && defined $search && $search->user->id == Bugzilla->user->id)
+ && defined $search && $search->user->id == $user->id)
{
my $params = new Bugzilla::CGI($search->url);
$params->param('columnlist', join(",", @collist));
@@ -188,7 +188,7 @@ $vars->{'buffer'} = $cgi->query_string();
my $search;
if (defined $cgi->param('query_based_on')) {
- my $searches = Bugzilla->user->queries;
+ my $searches = $user->queries;
my ($search) = grep($_->name eq $cgi->param('query_based_on'), @$searches);
if ($search) {