Commit 3af2a748 authored by Simon Green's avatar Simon Green

Bug 946565 - Bug Mail does not correct notify when two people have made changes

r=LpSolit, a=simon
parent 8c1cdef6
......@@ -92,11 +92,13 @@ sub Send {
old => $params->{changes}->{bug_status}->[0],
new => $params->{changes}->{bug_status}->[1],
login_name => $changer->login,
who => $changer,
blocker => $params->{blocker} },
{ field_name => 'resolution',
old => $params->{changes}->{resolution}->[0],
new => $params->{changes}->{resolution}->[1],
login_name => $changer->login,
who => $changer,
blocker => $params->{blocker} });
}
else {
......@@ -566,7 +568,10 @@ sub _get_new_bugmail_fields {
# If there isn't anything to show, don't include this header.
next unless $value;
push(@diffs, {field_name => $name, new => $value});
push(@diffs, {
field_name => $name,
who => $bug->reporter,
new => $value});
}
return @diffs;
......
......@@ -68,8 +68,8 @@
[% SET in_table = 0 %]
[% last_changer = 0 %]
[% FOREACH change = diffs %]
[% IF !isnew && changer.id != last_changer %]
[% last_changer = changer.id %]
[% IF !isnew && change.who.id != last_changer %]
[% last_changer = change.who.id %]
[% IF in_table == 1 %]
</table>
[% SET in_table = 0 %]
......
......@@ -45,18 +45,21 @@ You are receiving this mail because:
[% BLOCK generate_diffs %]
[% urlbase %]show_bug.cgi?id=[% bug.id %]
[%+ last_changer = 0 %]
[% IF isnew %]
[%+ +%]
[% END %]
[% FOREACH change = diffs %]
[% IF !isnew && changer.id != last_changer %]
[% last_changer = changer.id %]
[% IF !isnew && change.who.id != last_changer %]
[% last_changer = change.who.id %]
[% IF change.blocker %]
[% terms.Bug %] [%+ bug.id %] depends on [% terms.bug %] [%+ change.blocker.id %], which changed state.
[%+ terms.Bug %] [%+ change.blocker.id %] Summary: [% change.blocker.short_desc %]
[%+ urlbase %]show_bug.cgi?id=[% change.blocker.id %]
[% ELSE %]
[%~ changer.identity %] changed:
[% change.who.identity %] changed:
[% END %]
What |Removed |Added
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment