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
3af2a748
Commit
3af2a748
authored
Jan 03, 2014
by
Simon Green
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 946565 - Bug Mail does not correct notify when two people have made changes
r=LpSolit, a=simon
parent
8c1cdef6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
BugMail.pm
Bugzilla/BugMail.pm
+6
-1
bugmail.html.tmpl
template/en/default/email/bugmail.html.tmpl
+2
-2
bugmail.txt.tmpl
template/en/default/email/bugmail.txt.tmpl
+7
-4
No files found.
Bugzilla/BugMail.pm
View file @
3af2a748
...
@@ -92,11 +92,13 @@ sub Send {
...
@@ -92,11 +92,13 @@ sub Send {
old
=>
$params
->
{
changes
}
->
{
bug_status
}
->
[
0
],
old
=>
$params
->
{
changes
}
->
{
bug_status
}
->
[
0
],
new
=>
$params
->
{
changes
}
->
{
bug_status
}
->
[
1
],
new
=>
$params
->
{
changes
}
->
{
bug_status
}
->
[
1
],
login_name
=>
$changer
->
login
,
login_name
=>
$changer
->
login
,
who
=>
$changer
,
blocker
=>
$params
->
{
blocker
}
},
blocker
=>
$params
->
{
blocker
}
},
{
field_name
=>
'resolution'
,
{
field_name
=>
'resolution'
,
old
=>
$params
->
{
changes
}
->
{
resolution
}
->
[
0
],
old
=>
$params
->
{
changes
}
->
{
resolution
}
->
[
0
],
new
=>
$params
->
{
changes
}
->
{
resolution
}
->
[
1
],
new
=>
$params
->
{
changes
}
->
{
resolution
}
->
[
1
],
login_name
=>
$changer
->
login
,
login_name
=>
$changer
->
login
,
who
=>
$changer
,
blocker
=>
$params
->
{
blocker
}
});
blocker
=>
$params
->
{
blocker
}
});
}
}
else
{
else
{
...
@@ -566,7 +568,10 @@ sub _get_new_bugmail_fields {
...
@@ -566,7 +568,10 @@ sub _get_new_bugmail_fields {
# If there isn't anything to show, don't include this header.
# If there isn't anything to show, don't include this header.
next
unless
$value
;
next
unless
$value
;
push
(
@diffs
,
{
field_name
=>
$name
,
new
=>
$value
});
push
(
@diffs
,
{
field_name
=>
$name
,
who
=>
$bug
->
reporter
,
new
=>
$value
});
}
}
return
@diffs
;
return
@diffs
;
...
...
template/en/default/email/bugmail.html.tmpl
View file @
3af2a748
...
@@ -68,8 +68,8 @@
...
@@ -68,8 +68,8 @@
[% SET in_table = 0 %]
[% SET in_table = 0 %]
[% last_changer = 0 %]
[% last_changer = 0 %]
[% FOREACH change = diffs %]
[% FOREACH change = diffs %]
[% IF !isnew
&&
change
r
.id != last_changer %]
[% IF !isnew
&&
change
.who
.id != last_changer %]
[% last_changer = change
r
.id %]
[% last_changer = change
.who
.id %]
[% IF in_table == 1 %]
[% IF in_table == 1 %]
</table>
</table>
[% SET in_table = 0 %]
[% SET in_table = 0 %]
...
...
template/en/default/email/bugmail.txt.tmpl
View file @
3af2a748
...
@@ -45,18 +45,21 @@ You are receiving this mail because:
...
@@ -45,18 +45,21 @@ You are receiving this mail because:
[% BLOCK generate_diffs %]
[% BLOCK generate_diffs %]
[% urlbase %]show_bug.cgi?id=[% bug.id %]
[% urlbase %]show_bug.cgi?id=[% bug.id %]
[%+ last_changer = 0 %]
[%+ last_changer = 0 %]
[% IF isnew %]
[%+ +%]
[% END %]
[% FOREACH change = diffs %]
[% FOREACH change = diffs %]
[% IF !isnew && change
r
.id != last_changer %]
[% IF !isnew && change
.who
.id != last_changer %]
[% last_changer = change
r
.id %]
[% last_changer = change
.who
.id %]
[% IF change.blocker %]
[% IF change.blocker %]
[% terms.Bug %] [%+ bug.id %] depends on [% terms.bug %] [%+ change.blocker.id %], which changed state.
[% terms.Bug %] [%+ bug.id %] depends on [% terms.bug %] [%+ change.blocker.id %], which changed state.
[%+ terms.Bug %] [%+ change.blocker.id %] Summary: [% change.blocker.short_desc %]
[%+ terms.Bug %] [%+ change.blocker.id %] Summary: [% change.blocker.short_desc %]
[%+ urlbase %]show_bug.cgi?id=[% change.blocker.id %]
[%+ urlbase %]show_bug.cgi?id=[% change.blocker.id %]
[% ELSE %]
[% ELSE %]
[%~ changer.identity %] changed:
[% change.who.identity %] changed:
[% END %]
[% END %]
What |Removed |Added
What |Removed |Added
...
...
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