From 696b07461e5bdb7242561d8ea5d34adc4ca750c9 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Tue, 5 Nov 2013 01:36:14 +0800 Subject: Bug 891710: Flag names are not hyperlinks if multiple flags were set at the same time --- .../default/hook/bug/comments-aftercomments.html.tmpl | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'extensions/InlineHistory/template/en') 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 %] -- cgit v1.2.3-24-g4f1b