Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
edfb8c95
Commit
edfb8c95
authored
Jan 27, 2011
by
Gervase Markham
Committed by
Gervase Markham
Jan 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add diffs parameter to bugmail_recipients hook. r=mkanat.
https://bugzilla.mozilla.org/show_bug.cgi?id=616422
parent
00e1708f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
BugMail.pm
Bugzilla/BugMail.pm
+1
-1
Hook.pm
Bugzilla/Hook.pm
+10
-1
No files found.
Bugzilla/BugMail.pm
View file @
edfb8c95
...
@@ -191,7 +191,7 @@ sub Send {
...
@@ -191,7 +191,7 @@ sub Send {
Bugzilla::Hook::
process
(
'bugmail_recipients'
,
Bugzilla::Hook::
process
(
'bugmail_recipients'
,
{
bug
=>
$bug
,
recipients
=>
\%
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
# Find all those user-watching anyone on the current list, who is not
# on it already themselves.
# on it already themselves.
...
...
Bugzilla/Hook.pm
View file @
edfb8c95
...
@@ -502,8 +502,17 @@ Every id in the incoming C<recipients> hash will have an object in here.
...
@@ -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
(But if you add additional recipients to the C<recipients> hash, you are
B<not> required to add them to this hash.)
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
=head2 bugmail_relationships
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment