summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-20 05:00:41 +0200
committerlpsolit%gmail.com <>2006-06-20 05:00:41 +0200
commitb687ddef9b6dfeec3d87b7ae211decbf21b6e9a9 (patch)
tree5d2533f1e4482d3571d6e0b80865d3fa7dfea2fe
parentfefb51f1da3008e48244425d69298f74b3296ae8 (diff)
downloadbugzilla-b687ddef9b6dfeec3d87b7ae211decbf21b6e9a9.tar.gz
bugzilla-b687ddef9b6dfeec3d87b7ae211decbf21b6e9a9.tar.xz
Bug 342053: Quicksearch.pm defines $cgi outside routines - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=myk
-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);