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
5721ab05
Commit
5721ab05
authored
Feb 11, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
BugMail.pm
Bugzilla/BugMail.pm
+1
-1
Hook.pm
Bugzilla/Hook.pm
+4
-0
Extension.pm
extensions/Example/Extension.pm
+8
-4
No files found.
Bugzilla/BugMail.pm
View file @
5721ab05
...
...
@@ -428,7 +428,7 @@ sub Send {
}
Bugzilla::Hook::
process
(
'bugmail_recipients'
,
{
recipients
=>
\%
recipients
});
{
bug
=>
$bug
,
recipients
=>
\%
recipients
});
# Find all those user-watching anyone on the current list, who is not
# on it already themselves.
...
...
Bugzilla/Hook.pm
View file @
5721ab05
...
...
@@ -374,6 +374,10 @@ Params:
=over
=item C<bug>
The L<Bugzilla::Bug> that bugmail is being sent about.
=item C<recipients>
This is a hashref. The keys are numeric user ids from the C<profiles>
...
...
extensions/Example/Extension.pm
View file @
5721ab05
...
...
@@ -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
{
...
...
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