summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search/Quicksearch.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm
index 42eae2631..69eaf8dcc 100644
--- a/Bugzilla/Search/Quicksearch.pm
+++ b/Bugzilla/Search/Quicksearch.pm
@@ -32,8 +32,6 @@ use Bugzilla::Bug;
use base qw(Exporter);
@Bugzilla::Search::Quicksearch::EXPORT = qw(quicksearch);
-my $cgi = Bugzilla->cgi;
-
# Word renamings
my %mappings = (# Status, Resolution, Platform, OS, Priority, Severity
"status" => "bug_status",
@@ -105,6 +103,7 @@ my $or = 0;
sub quicksearch {
my ($searchstring) = (@_);
+ my $cgi = Bugzilla->cgi;
# Remove leading and trailing commas and whitespace.
$searchstring =~ s/(^[\s,]+|[\s,]+$)//g;
@@ -493,6 +492,7 @@ sub addChart {
sub makeChart {
my ($expr, $field, $type, $value) = @_;
+ my $cgi = Bugzilla->cgi;
$cgi->param("field$expr", $field);
$cgi->param("type$expr", $type);
$cgi->param("value$expr", $value);