summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-11 20:12:43 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-11 20:12:43 +0100
commit5721ab05a01ea3dacfc6f07669469b3868a4df06 (patch)
tree7d7baff3a790003a82ba6c485f225b50f0be61c4 /Bugzilla
parentd93f2e56c9607d5ad4fb1dd95e63c6cc0940cbc9 (diff)
downloadbugzilla-5721ab05a01ea3dacfc6f07669469b3868a4df06.tar.gz
bugzilla-5721ab05a01ea3dacfc6f07669469b3868a4df06.tar.xz
Add a "bug" argument to the bugmail_recipients hook that was just checked in.
r=mkanat, a=mkanat (module owner) https://bugzilla.mozilla.org/show_bug.cgi?id=545683
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/BugMail.pm2
-rw-r--r--Bugzilla/Hook.pm4
2 files changed, 5 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 7a92b13a5..b718f4199 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -428,7 +428,7 @@ sub Send {
}
Bugzilla::Hook::process('bugmail_recipients',
- { recipients => \%recipients });
+ { bug => $bug, recipients => \%recipients });
# Find all those user-watching anyone on the current list, who is not
# on it already themselves.
diff --git a/Bugzilla/Hook.pm b/Bugzilla/Hook.pm
index 36f083975..cf718c94f 100644
--- a/Bugzilla/Hook.pm
+++ b/Bugzilla/Hook.pm
@@ -374,6 +374,10 @@ Params:
=over
+=item C<bug>
+
+The L<Bugzilla::Bug> that bugmail is being sent about.
+
=item C<recipients>
This is a hashref. The keys are numeric user ids from the C<profiles>