From aba77b0e1deae05c6a64e297e9a45b579ab3f635 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Mon, 19 Jun 2006 20:00:41 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20342053:=20Quicksearch.pm=20defines=20$cgi?= =?UTF-8?q?=20outside=20routines=20-=20Patch=20by=20Fr=C3=A9d=C3=A9ric=20B?= =?UTF-8?q?uclin=20=20r=3Dwicked=20a=3Dmyk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@200346 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Search/Quicksearch.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Search/Quicksearch.pm b/mozilla/webtools/bugzilla/Bugzilla/Search/Quicksearch.pm index 42eae2631ee..69eaf8dcca4 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Search/Quicksearch.pm +++ b/mozilla/webtools/bugzilla/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);