summaryrefslogtreecommitdiffstats
path: root/report.cgi
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-02-26 22:53:57 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-02-26 22:53:57 +0100
commit9fd6e94c03fa3bba09af2aed85d6664575385e9a (patch)
tree1f4e7c14d435d4b2744beaa47e10ab7ec6dd930d /report.cgi
parent5ccff95a61b0c0816fa42da061c298f794daf33d (diff)
downloadbugzilla-9fd6e94c03fa3bba09af2aed85d6664575385e9a.tar.gz
bugzilla-9fd6e94c03fa3bba09af2aed85d6664575385e9a.tar.xz
Reverted Bug 836067 due to buglist crashing and do not yet know the reason
Diffstat (limited to 'report.cgi')
-rwxr-xr-xreport.cgi8
1 files changed, 5 insertions, 3 deletions
diff --git a/report.cgi b/report.cgi
index decbaeeb2..7bff62be9 100755
--- a/report.cgi
+++ b/report.cgi
@@ -131,12 +131,13 @@ my $search = new Bugzilla::Search(
params => scalar $params->Vars,
allow_unlimited => 1,
);
+my $query = $search->sql;
$::SIG{TERM} = 'DEFAULT';
$::SIG{PIPE} = 'DEFAULT';
-Bugzilla->switch_to_shadow_db();
-my ($results, $extra_data) = $search->data;
+my $dbh = Bugzilla->switch_to_shadow_db();
+my $results = $dbh->selectall_arrayref($query);
# We have a hash of hashes for the data itself, and a hash to hold the
# row/col/table names.
@@ -223,7 +224,8 @@ if ($width && $formatparam eq "bar") {
$vars->{'width'} = $width if $width;
$vars->{'height'} = $height if $height;
-$vars->{'queries'} = $extra_data;
+
+$vars->{'query'} = $query;
if ($cgi->param('debug')
&& Bugzilla->params->{debug_group}