use base qw(Exporter);
@Bugzilla::Search::Quicksearch::EXPORT = qw(quicksearch);
-my $cgi = Bugzilla->cgi;
# Word renamings
my %mappings = (# Status, Resolution, Platform, OS, Priority, Severity
sub quicksearch {
my ($searchstring) = (@_);
my $urlbase = correct_urlbase();
+ my $cgi = Bugzilla->cgi;
# Remove leading and trailing commas and whitespace.
$searchstring =~ s/(^[\s,]+|[\s,]+$)//g;
# 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);