From 908eef430dcd245e651e1646aede0fa7aea6af53 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Mon, 17 Apr 2006 17:39:43 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20334344:=20process=5Fbug.cgi=20is=20broken?= =?UTF-8?q?=20when=20changing=20several=20bugs=20at=20once=20-=20Patch=20b?= =?UTF-8?q?y=20Andr=C3=A9=20Batosti=20=20r=3DLpSolit?= =?UTF-8?q?=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@194513 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/process_bug.cgi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mozilla/webtools/bugzilla/process_bug.cgi b/mozilla/webtools/bugzilla/process_bug.cgi index 93fc3d2cf2a..9e0bc42bc84 100755 --- a/mozilla/webtools/bugzilla/process_bug.cgi +++ b/mozilla/webtools/bugzilla/process_bug.cgi @@ -1460,6 +1460,7 @@ if ($prod_changed && Param("strict_isolation")) { # foreach my $id (@idlist) { my $query = $basequery; + my @bug_values = @values; my $bug_obj = new Bugzilla::Bug($id, $whoid); if ($cgi->param('knob') eq 'reassignbycomponent') { @@ -1472,7 +1473,7 @@ foreach my $id (@idlist) { WHERE components.id = ?', undef, $new_comp_id); $query .= ", assigned_to = ?"; - push(@values, $assignee); + push(@bug_values, $assignee); if (Param("useqacontact")) { $qacontact = $dbh->selectrow_array('SELECT initialqacontact FROM components @@ -1480,7 +1481,7 @@ foreach my $id (@idlist) { undef, $new_comp_id); if ($qacontact) { $query .= ", qa_contact = ?"; - push(@values, $qacontact); + push(@bug_values, $qacontact); } else { $query .= ", qa_contact = NULL"; @@ -1703,10 +1704,10 @@ foreach my $id (@idlist) { } } $query .= " WHERE bug_id = ?"; - push(@values, $id); + push(@bug_values, $id); if ($::comma ne "") { - $dbh->do($query, undef, @values); + $dbh->do($query, undef, @bug_values); } # Check for duplicates if the bug is [re]open or its resolution is changed.