diff options
author | lpsolit%gmail.com <> | 2008-07-31 04:47:25 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-07-31 04:47:25 +0200 |
commit | 7f0ba708827dec5bb77222405009f1771e43655a (patch) | |
tree | 4b40eddbdcd172d211514d25dc9b2adcf78e9caf /process_bug.cgi | |
parent | 4fc0f4b92290a7fbf9b4340e9dd37c2626f524ea (diff) | |
download | bugzilla-7f0ba708827dec5bb77222405009f1771e43655a.tar.gz bugzilla-7f0ba708827dec5bb77222405009f1771e43655a.tar.xz |
Bug 313122: Implement Product->create, $product->update and $product->remove_from_db, and make editproducts.cgi use them - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 814ff5612..8424a49a5 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -540,13 +540,13 @@ foreach my $bug (@bug_objects) { # an error later. delete $changed_deps{''}; - # $msgs will store emails which have to be sent to voters, if any. - my $msgs; + # @msgs will store emails which have to be sent to voters, if any. + my @msgs; if ($changes->{'product'}) { # If some votes have been removed, RemoveVotes() returns # a list of messages to send to voters. - # We delay the sending of these messages till tables are unlocked. - $msgs = RemoveVotes($bug->id, 0, 'votes_bug_moved'); + # We delay the sending of these messages till changes are committed. + @msgs = RemoveVotes($bug->id, 0, 'votes_bug_moved'); CheckIfVotedConfirmed($bug->id, Bugzilla->user->id); } @@ -560,7 +560,7 @@ foreach my $bug (@bug_objects) { ############### # Now is a good time to send email to voters. - foreach my $msg (@$msgs) { + foreach my $msg (@msgs) { MessageToMTA($msg); } |