diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-11 20:12:43 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-11 20:12:43 +0100 |
commit | 5721ab05a01ea3dacfc6f07669469b3868a4df06 (patch) | |
tree | 7d7baff3a790003a82ba6c485f225b50f0be61c4 /extensions | |
parent | d93f2e56c9607d5ad4fb1dd95e63c6cc0940cbc9 (diff) | |
download | bugzilla-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 'extensions')
-rw-r--r-- | extensions/Example/Extension.pm | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/extensions/Example/Extension.pm b/extensions/Example/Extension.pm index 77489692c..fd75cbf64 100644 --- a/extensions/Example/Extension.pm +++ b/extensions/Example/Extension.pm @@ -191,10 +191,14 @@ sub buglist_columns { sub bugmail_recipients { my ($self, $args) = @_; - my $recipients = $args->{'recipients'}; - # Uncomment the below line to add the first user in the Bugzilla database - # to every bugmail as though he/she were a CC. - #$recipients->{1}->{+REL_CC} = 1; + my $recipients = $args->{recipients}; + my $bug = $args->{bug}; + if ($bug->id == 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 { |