From: lpsolit%gmail.com <> Date: Tue, 20 Jun 2006 03:00:41 +0000 (+0000) Subject: Bug 342053: Quicksearch.pm defines $cgi outside routines - Patch by Frédéric Buclin... X-Git-Tag: bugzilla-2.23.2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b687ddef9b6dfeec3d87b7ae211decbf21b6e9a9;p=thirdparty%2Fbugzilla.git Bug 342053: Quicksearch.pm defines $cgi outside routines - Patch by Frédéric Buclin r=wicked a=myk --- diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index 42eae2631e..69eaf8dcca 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);