diff options
author | lpsolit%gmail.com <> | 2005-10-27 01:15:48 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-10-27 01:15:48 +0200 |
commit | f4915acec3dc0f746d068ba5c8019ed58df8bdfe (patch) | |
tree | 8914f41d7e2040beb5c962d2b9cfcff6bf7fdb55 /duplicates.cgi | |
parent | ba7c33a6c05815453f8ca694f8aec3a6907720c9 (diff) | |
download | bugzilla-f4915acec3dc0f746d068ba5c8019ed58df8bdfe.tar.gz bugzilla-f4915acec3dc0f746d068ba5c8019ed58df8bdfe.tar.xz |
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 <wicked@etlicon.fi> r=LpSolit a=myk
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-x | duplicates.cgi | 7 |
1 files changed, 4 insertions, 3 deletions
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}, |