diff --git a/webtools/bugzilla/template/en/default/bug/show.xml.tmpl b/webtools/bugzilla/template/en/default/bug/show.xml.tmpl index a54202675656..02b271081354 100644 --- a/webtools/bugzilla/template/en/default/bug/show.xml.tmpl +++ b/webtools/bugzilla/template/en/default/bug/show.xml.tmpl @@ -69,7 +69,7 @@ [% FOREACH c = bug.longdescs %] [% NEXT IF c.isprivate && !user.in_group(Param("insidergroup")) %] - [% c.email FILTER xml %] + [% c.email FILTER xml %] [% c.time FILTER time FILTER xml %] [% IF user.in_group(Param('timetrackinggroup')) && (c.work_time - 0 != 0) %] [% PROCESS formattimeunit time_unit = c.work_time FILTER xml %] @@ -119,12 +119,16 @@ [%# We need to handle some fields differently. This should become # nicer once we have custfields, and a type attribute for the fields #%] + [% name = '' %] [% IF field == 'reporter' OR field == 'assigned_to' OR field == 'qa_contact' %] + [% name = val.name %] [% val = val.email %] [% ELSIF field == 'creation_ts' OR field == 'delta_ts' %] [% val = val FILTER time %] [% END %] - <[% field %]>[% val FILTER xml %] + <[% field %] + [% IF name != '' %]name="[% name FILTER xml %]"[% END %] + >[% val FILTER xml %] [% END %] [% END %]