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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
0459ae82
Commit
0459ae82
authored
Jan 07, 2011
by
Gervase Markham
Committed by
Gervase Markham
Jan 07, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide user objects to bugmail_recipients hook. r,a=mkanat.
https://bugzilla.mozilla.org/show_bug.cgi?id=622813
parent
aa94254a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
BugMail.pm
Bugzilla/BugMail.pm
+7
-1
Hook.pm
Bugzilla/Hook.pm
+8
-0
No files found.
Bugzilla/BugMail.pm
View file @
0459ae82
...
...
@@ -184,8 +184,14 @@ sub Send {
}
}
# Make sure %user_cache has every user in it so far referenced
foreach
my
$user_id
(
keys
%
recipients
)
{
$user_cache
{
$user_id
}
||=
new
Bugzilla::
User
(
$user_id
);
}
Bugzilla::Hook::
process
(
'bugmail_recipients'
,
{
bug
=>
$bug
,
recipients
=>
\%
recipients
});
{
bug
=>
$bug
,
recipients
=>
\%
recipients
,
users
=>
\%
user_cache
});
# Find all those user-watching anyone on the current list, who is not
# on it already themselves.
...
...
Bugzilla/Hook.pm
View file @
0459ae82
...
...
@@ -494,6 +494,14 @@ as though he were on the CC list:
(We use C<+> in front of C<REL_CC> so that Perl interprets it as a constant
instead of as a string.)
=item C<users>
This is a hash of L<Bugzilla::User> objects, keyed by id. This is so you can
find out more information about any of the user ids in the C<recipients> hash.
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
...
...
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