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 { ...@@ -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;
......
...@@ -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 && changer.id != last_changer %] [% IF !isnew && change.who.id != last_changer %]
[% last_changer = changer.id %] [% last_changer = change.who.id %]
[% IF in_table == 1 %] [% IF in_table == 1 %]
</table> </table>
[% SET in_table = 0 %] [% SET in_table = 0 %]
......
...@@ -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 && changer.id != last_changer %] [% IF !isnew && change.who.id != last_changer %]
[% last_changer = changer.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
......
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