From d1bede27b18d92b3384abebb2dce7788b2697050 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 6 Nov 2008 07:16:16 +0000 Subject: [PATCH] =?utf8?q?Bug=20463315:=20Compiling=20buglist.cgi=20in=20B?= =?utf8?q?ugzilla=202.22.5+=20with=20Perl=205.10=20throws=20a=20warning=20?= =?utf8?q?due=20to=20Quicksearch.pm=20-=20Patch=20by=20Fr=C3=83=C2=A9d?= =?utf8?q?=C3=83=C2=A9ric=20Buclin=20=20r=3Djustdave=20?= =?utf8?q?a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Search/Quicksearch.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Search/Quicksearch.pm b/Bugzilla/Search/Quicksearch.pm index 5163e4769f..d3f100af21 100644 --- a/Bugzilla/Search/Quicksearch.pm +++ b/Bugzilla/Search/Quicksearch.pm @@ -30,7 +30,6 @@ use Bugzilla::Util; use base qw(Exporter); @Bugzilla::Search::Quicksearch::EXPORT = qw(quicksearch); -my $cgi = Bugzilla->cgi; # Word renamings my %mappings = (# Status, Resolution, Platform, OS, Priority, Severity @@ -104,6 +103,7 @@ my $or = 0; sub quicksearch { my ($searchstring) = (@_); my $urlbase = correct_urlbase(); + my $cgi = Bugzilla->cgi; # Remove leading and trailing commas and whitespace. $searchstring =~ s/(^[\s,]+|[\s,]+$)//g; @@ -488,6 +488,7 @@ sub addChart { # Create the CGI parameters for a boolean chart sub makeChart { my ($expr, $field, $type, $value) = @_; + my $cgi = Bugzilla->cgi; $cgi->param("field$expr", $field); $cgi->param("type$expr", $type); -- 2.47.2