Commit 5721ab05 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

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
parent d93f2e56
...@@ -428,7 +428,7 @@ sub Send { ...@@ -428,7 +428,7 @@ sub Send {
} }
Bugzilla::Hook::process('bugmail_recipients', Bugzilla::Hook::process('bugmail_recipients',
{ recipients => \%recipients }); { bug => $bug, recipients => \%recipients });
# Find all those user-watching anyone on the current list, who is not # Find all those user-watching anyone on the current list, who is not
# on it already themselves. # on it already themselves.
......
...@@ -374,6 +374,10 @@ Params: ...@@ -374,6 +374,10 @@ Params:
=over =over
=item C<bug>
The L<Bugzilla::Bug> that bugmail is being sent about.
=item C<recipients> =item C<recipients>
This is a hashref. The keys are numeric user ids from the C<profiles> This is a hashref. The keys are numeric user ids from the C<profiles>
......
...@@ -191,10 +191,14 @@ sub buglist_columns { ...@@ -191,10 +191,14 @@ sub buglist_columns {
sub bugmail_recipients { sub bugmail_recipients {
my ($self, $args) = @_; my ($self, $args) = @_;
my $recipients = $args->{'recipients'}; my $recipients = $args->{recipients};
# Uncomment the below line to add the first user in the Bugzilla database my $bug = $args->{bug};
# to every bugmail as though he/she were a CC. if ($bug->id == 1) {
#$recipients->{1}->{+REL_CC} = 1; # Uncomment the line below to add the second user in the Bugzilla
# database to the recipients list of every bugmail sent out about
# bug 1 as though that user were on the CC list.
#$recipients->{2}->{+REL_CC} = 1;
}
} }
sub colchange_columns { sub colchange_columns {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment