summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-12-16 03:13:56 +0100
committerByron Jones <glob@mozilla.com>2014-12-16 03:13:56 +0100
commit812af0321244c41a21f5f280120a0b411cdf1f39 (patch)
treeb663cd059ab99c876fe4e02e841b3ab95677077e /extensions
parent1935edeb9b514c087004904ea707821bc47a8ab9 (diff)
downloadbugzilla-812af0321244c41a21f5f280120a0b411cdf1f39.tar.gz
bugzilla-812af0321244c41a21f5f280120a0b411cdf1f39.tar.xz
Bug 1105745: changes made via the bounty form are not emailed immediately
Diffstat (limited to 'extensions')
-rw-r--r--extensions/BMO/Extension.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index e776b320b..b4ff1b01d 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -25,6 +25,7 @@ package Bugzilla::Extension::BMO;
use strict;
use base qw(Bugzilla::Extension);
+use Bugzilla::BugMail;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Field;
@@ -199,7 +200,8 @@ sub page_before_template {
sub bounty_attachment {
my ($vars) = @_;
- Bugzilla->user->in_group('bounty-team')
+ my $user = Bugzilla->user;
+ $user->in_group('bounty-team')
|| ThrowUserError("auth_failure", { group => "bounty-team",
action => "add",
object => "bounty_attachments" });
@@ -237,6 +239,8 @@ sub bounty_attachment {
}
$dbh->bz_commit_transaction();
+ Bugzilla::BugMail::Send($bug->id, { changer => $user });
+
print Bugzilla->cgi->redirect('show_bug.cgi?id=' . $bug->id);
exit;
}