aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-05 16:26:09 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-04-05 16:26:09 -0700
commitd74d76b0730621b09571775902899d7030ca3150 (patch)
treedfeb8f80dc10cd0e25e0c7ae89f8dd48677db9b6 /process_bug.cgi
parentBug 556439: Prevent datetime_from from dying if it gets 0000-00-00 as a (diff)
downloadbugzilla-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-xprocess_bug.cgi7
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());
}