Created
December 16, 2016 22:16
-
-
Save dklawren/5499596b4af142c1ac4572a9b77f21e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/process_bug.cgi b/process_bug.cgi | |
index f97d02b..76595f6 100755 | |
--- a/process_bug.cgi | |
+++ b/process_bug.cgi | |
@@ -393,7 +393,7 @@ if (defined $cgi->param('id')) { | |
############################## | |
# Do Actual Database Updates # | |
############################## | |
-my $sent_changes; | |
+my $sent_changes = []; | |
foreach my $bug (@bug_objects) { | |
my $changes = $bug->update(); | |
@@ -407,7 +407,7 @@ foreach my $bug (@bug_objects) { | |
} | |
} | |
- $sent_changes = $bug->send_changes($changes); | |
+ push(@$sent_changes, $bug->send_changes($changes)); | |
} | |
# Delete the session token used for the mass-change. | |
@@ -426,14 +426,16 @@ my $format = $template->get_format("bug/show", | |
if (Bugzilla->usage_mode != USAGE_MODE_EMAIL) { | |
print $cgi->header(); | |
- foreach my $sent_change (@$sent_changes) { | |
- my $params = $sent_change->{params}; | |
- my $sent_bugmail = $sent_change->{sent_bugmail}; | |
- $vars->{$_} = $params->{$_} foreach keys %$params; | |
- $vars->{'sent_bugmail'} = $sent_bugmail; | |
- $template->process("bug/process/results.html.tmpl", $vars) | |
- || ThrowTemplateError($template->error()); | |
- $vars->{'header_done'} = 1; | |
+ foreach my $results (@$sent_changes) { | |
+ foreach my $sent_change (@$results) { | |
+ my $params = $sent_change->{params}; | |
+ my $sent_bugmail = $sent_change->{sent_bugmail}; | |
+ $vars->{$_} = $params->{$_} foreach keys %$params; | |
+ $vars->{'sent_bugmail'} = $sent_bugmail; | |
+ $template->process("bug/process/results.html.tmpl", $vars) | |
+ || ThrowTemplateError($template->error()); | |
+ $vars->{'header_done'} = 1; | |
+ } | |
} | |
if ($action eq 'next_bug' or $action eq 'same_bug') { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment