diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-05 16:26:09 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-05 16:26:09 -0700 |
commit | d74d76b0730621b09571775902899d7030ca3150 (patch) | |
tree | dfeb8f80dc10cd0e25e0c7ae89f8dd48677db9b6 /process_bug.cgi | |
parent | Bug 556439: Prevent datetime_from from dying if it gets 0000-00-00 as a (diff) | |
download | bugzilla-d74d76b0730621b09571775902899d7030ca3150.tar.gz bugzilla-d74d76b0730621b09571775902899d7030ca3150.tar.bz2 bugzilla-d74d76b0730621b09571775902899d7030ca3150.zip |
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()); } |