Bug 342053: Quicksearch.pm defines $cgi outside routines - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=myk
git-svn-id: svn://10.0.0.236/trunk@200346 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user