From f4915acec3dc0f746d068ba5c8019ed58df8bdfe Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 26 Oct 2005 23:15:48 +0000 Subject: Bug 303693: Eliminate deprecated Bugzilla::DB routines from describe*.cgi, duplicates.cgi, quips.cgi, report.cgi, request.cgi and showdependency*.cgi - Patch by Teemu Mannermaa r=LpSolit a=myk --- duplicates.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'duplicates.cgi') diff --git a/duplicates.cgi b/duplicates.cgi index 98b307526..30f027103 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -37,6 +37,7 @@ use Bugzilla::Config qw(:DEFAULT $datadir); use Bugzilla::Constants; my $cgi = Bugzilla->cgi; +my $dbh = Bugzilla->dbh; # Go directly to the XUL version of the duplicates report (duplicates.xul) # if the user specified ctype=xul. Adds params if they exist, and directs @@ -231,13 +232,13 @@ if (scalar(%count)) { 'params' => $params, ); - SendSQL($query->getSQL()); + my $results = $dbh->selectall_arrayref($query->getSQL()); - while (MoreSQLData()) { + foreach my $result (@$results) { # Note: maximum row count is dealt with in the template. my ($id, $component, $bug_severity, $op_sys, $target_milestone, - $short_desc, $bug_status, $resolution) = FetchSQLData(); + $short_desc, $bug_status, $resolution) = @$result; push (@bugs, { id => $id, count => $count{$id}, -- cgit v1.2.3-24-g4f1b