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
8cf99992
Commit
8cf99992
authored
Feb 16, 2012
by
Dave Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 721161 - Add to X-Bugzilla-Changed-Fields when a new attachment is created on a bug
r/a=LpSolit
parent
bdbd195a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
BugMail.pm
Bugzilla/BugMail.pm
+9
-1
No files found.
Bugzilla/BugMail.pm
View file @
8cf99992
...
@@ -326,6 +326,14 @@ sub sendMail {
...
@@ -326,6 +326,14 @@ sub sendMail {
push
(
@watchingrel
,
'None'
)
unless
@watchingrel
;
push
(
@watchingrel
,
'None'
)
unless
@watchingrel
;
push
@watchingrel
,
map
{
user_id_to_login
(
$_
)
}
@$watchingRef
;
push
@watchingrel
,
map
{
user_id_to_login
(
$_
)
}
@$watchingRef
;
my
@changedfields
=
uniq
map
{
$_
->
{
field_name
}
}
@display_diffs
;
# Add attachments.created to changedfields if one or more
# comments contain information about a new attachment
if
(
grep
(
$_
->
type
==
CMT_ATTACHMENT_CREATED
,
@send_comments
))
{
push
(
@changedfields
,
'attachments.created'
);
}
my
$vars
=
{
my
$vars
=
{
date
=>
$date
,
date
=>
$date
,
to_user
=>
$user
,
to_user
=>
$user
,
...
@@ -336,7 +344,7 @@ sub sendMail {
...
@@ -336,7 +344,7 @@ sub sendMail {
reasonswatchheader
=>
join
(
" "
,
@watchingrel
),
reasonswatchheader
=>
join
(
" "
,
@watchingrel
),
changer
=>
$changer
,
changer
=>
$changer
,
diffs
=>
\
@display_diffs
,
diffs
=>
\
@display_diffs
,
changedfields
=>
[
uniq
map
{
$_
->
{
field_name
}
}
@display_diffs
],
changedfields
=>
\
@changedfields
,
new_comments
=>
\
@send_comments
,
new_comments
=>
\
@send_comments
,
threadingmarker
=>
build_thread_marker
(
$bug
->
id
,
$user
->
id
,
!
$bug
->
lastdiffed
),
threadingmarker
=>
build_thread_marker
(
$bug
->
id
,
$user
->
id
,
!
$bug
->
lastdiffed
),
};
};
...
...
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