summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2013-11-04 18:36:14 +0100
committerByron Jones <bjones@mozilla.com>2013-11-04 18:36:14 +0100
commit696b07461e5bdb7242561d8ea5d34adc4ca750c9 (patch)
tree6f756944a3be3e9f626b14a155a2d9b8b558e1bf
parent1baa39515f11f1864a74bf995a87825b9182e8c2 (diff)
downloadbugzilla-696b07461e5bdb7242561d8ea5d34adc4ca750c9.tar.gz
bugzilla-696b07461e5bdb7242561d8ea5d34adc4ca750c9.tar.xz
Bug 891710: Flag names are not hyperlinks if multiple flags were set at the same time
-rw-r--r--extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl19
1 files changed, 11 insertions, 8 deletions
diff --git a/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl b/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl
index 25100fe9a..3c4d4a202 100644
--- a/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl
+++ b/extensions/InlineHistory/template/en/default/hook/bug/comments-aftercomments.html.tmpl
@@ -25,14 +25,17 @@
[% FOREACH change = operation.changes %]
[%# track flag changes %]
[% IF change.fieldname == 'flagtypes.name' && change.added != '' %]
- var item = new Array(5);
- item[0] = '[% changer_login FILTER js %]';
- item[1] = '[% change_date FILTER js %]';
- item[2] = '[% change.attachid FILTER js %]';
- item[3] = '[% change.added FILTER js %]';
- item[4] = '[% changer_identity FILTER js %]';
- ih_activity_flags.push(item);
- [% has_flag = 1 %]
+ [% new_flags = change.added.split('[ ,]+') %]
+ [% FOREACH new_flag IN new_flags %]
+ var item = new Array(5);
+ item[0] = '[% changer_login FILTER js %]';
+ item[1] = '[% change_date FILTER js %]';
+ item[2] = '[% change.attachid FILTER js %]';
+ item[3] = '[% new_flag FILTER js %]';
+ item[4] = '[% changer_identity FILTER js %]';
+ ih_activity_flags.push(item);
+ [% has_flag = 1 %]
+ [% END %]
[% END %]
[%# wrap CC changes in a span for toggling visibility %]