]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Add diffs parameter to bugmail_recipients hook. r=mkanat.
authorGervase Markham <gerv@gerv.net>
Thu, 27 Jan 2011 10:35:32 +0000 (10:35 +0000)
committerGervase Markham <gerv@mozilla.org>
Thu, 27 Jan 2011 10:35:32 +0000 (10:35 +0000)
https://bugzilla.mozilla.org/show_bug.cgi?id=616422

Bugzilla/BugMail.pm
Bugzilla/Hook.pm

index 41b7a3cf1bd7c7003e0b6ae70e6a535d0199de68..9630ce0ede5c7202a124e013309c7ee5e75bb855 100644 (file)
@@ -191,7 +191,7 @@ sub Send {
     
     Bugzilla::Hook::process('bugmail_recipients',
                             { bug => $bug, recipients => \%recipients,
-                              users => \%user_cache });
+                              users => \%user_cache, diffs => $diffs });
 
     # Find all those user-watching anyone on the current list, who is not
     # on it already themselves.
index abedfde4a8e5e2ac7c342113a341f6b0574796eb..de46f9a25cc8d39a356d92be874685f9b37a1e70 100644 (file)
@@ -502,8 +502,17 @@ Every id in the incoming C<recipients> hash will have an object in here.
 (But if you add additional recipients to the C<recipients> hash, you are 
 B<not> required to add them to this hash.)
 
-=back
+=item C<diffs>
+
+This is a list of hashes, each hash representing a change to the bug. Each 
+hash has the following members: C<field_name>, C<bug_when>, C<old>, C<new> 
+and C<who> (a L<Bugzilla::User>). If appropriate, there will also be 
+C<attach_id> or C<comment_id>; if either is present, there will be 
+C<isprivate>. See C<_get_diffs> in F<Bugzilla/BugMail.pm> to see exactly how 
+it is populated. Warning: the format and existence of the "diffs" parameter 
+is subject to change in future releases of Bugzilla.
 
+=back
 
 =head2 bugmail_relationships