Commit b687ddef authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 342053: Quicksearch.pm defines $cgi outside routines - Patch by Frédéric…

Bug 342053: Quicksearch.pm defines $cgi outside routines - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=myk
parent fefb51f1
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment