From 58e6f3b917ac29d28cf087c22911eb07dd54181b Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 28 Nov 2006 01:48:56 +0000 Subject: Bug 361870: SQL query in Bugzilla::Bug::EmitDependList() too complicated - Patch by Frédéric Buclin r=bkor a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- process_bug.cgi | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'process_bug.cgi') diff --git a/process_bug.cgi b/process_bug.cgi index 965e75a9f..c7ba981ff 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -1273,11 +1273,8 @@ sub SnapShotBug { sub SnapShotDeps { - my ($i, $target, $me) = (@_); - my $dbh = Bugzilla->dbh; - my $list = $dbh->selectcol_arrayref(qq{SELECT $target FROM dependencies - WHERE $me = ? ORDER BY $target}, - undef, $i); + my ($bug_id, $target, $me) = (@_); + my $list = Bugzilla::Bug::EmitDependList($me, $target, $bug_id); return join(',', @$list); } -- cgit v1.2.3-24-g4f1b