summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-11-28 02:48:56 +0100
committerlpsolit%gmail.com <>2006-11-28 02:48:56 +0100
commit58e6f3b917ac29d28cf087c22911eb07dd54181b (patch)
tree7b6f0d1f9983ad938c7944bf36787006b305889d /process_bug.cgi
parent906283e027be962ec042ff602639de564aae62e6 (diff)
downloadbugzilla-58e6f3b917ac29d28cf087c22911eb07dd54181b.tar.gz
bugzilla-58e6f3b917ac29d28cf087c22911eb07dd54181b.tar.xz
Bug 361870: SQL query in Bugzilla::Bug::EmitDependList() too complicated - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bkor a=justdave
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi7
1 files changed, 2 insertions, 5 deletions
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);
}