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",
sub quicksearch {
my ($searchstring) = (@_);
+ my $cgi = Bugzilla->cgi;
# Remove leading and trailing commas and whitespace.
$searchstring =~ s/(^[\s,]+|[\s,]+$)//g;
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);