diff options
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 39526b3ff..6afb9cc91 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -78,10 +78,9 @@ my $vars = {}; sub send_results { my ($bug_id, $vars) = @_; my $template = Bugzilla->template; - if (Bugzilla->usage_mode == USAGE_MODE_EMAIL) { - Bugzilla::BugMail::Send($bug_id, $vars->{'mailrecipients'}); - } - else { + $vars->{'sent_bugmail'} = + Bugzilla::BugMail::Send($bug_id, $vars->{'mailrecipients'}); + if (Bugzilla->usage_mode != USAGE_MODE_EMAIL) { $template->process("bug/process/results.html.tmpl", $vars) || ThrowTemplateError($template->error()); } |