diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-06 01:26:09 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-06 01:26:09 +0200 |
commit | d74d76b0730621b09571775902899d7030ca3150 (patch) | |
tree | dfeb8f80dc10cd0e25e0c7ae89f8dd48677db9b6 /process_bug.cgi | |
parent | 3b351275ab6f8090620234dd2b3ee8a9ef72e599 (diff) | |
download | bugzilla-d74d76b0730621b09571775902899d7030ca3150.tar.gz bugzilla-d74d76b0730621b09571775902899d7030ca3150.tar.xz |
Bug 556429: Stop sending bugmail from inside the template
r=LpSolit, a=LpSolit
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()); } |