From b687ddef9b6dfeec3d87b7ae211decbf21b6e9a9 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 20 Jun 2006 03:00:41 +0000 Subject: Bug 342053: Quicksearch.pm defines $cgi outside routines - Patch by Frédéric Buclin r=wicked a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Search/Quicksearch.pm | 4 ++-- 1 file 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); -- cgit v1.2.3-24-g4f1b