Bug 340001: Bug XML should include real names

Patch by Colin Ogilvie <colin.ogilvie@gmail.com>; r=LpSolit; a=myk
parent 8e808ffb
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
[% FOREACH c = bug.longdescs %] [% FOREACH c = bug.longdescs %]
[% NEXT IF c.isprivate && !user.in_group(Param("insidergroup")) %] [% NEXT IF c.isprivate && !user.in_group(Param("insidergroup")) %]
<long_desc isprivate="[% c.isprivate FILTER xml %]"> <long_desc isprivate="[% c.isprivate FILTER xml %]">
<who>[% c.email FILTER xml %]</who> <who name="[% c.name FILTER xml %]">[% c.email FILTER xml %]</who>
<bug_when>[% c.time FILTER time FILTER xml %]</bug_when> <bug_when>[% c.time FILTER time FILTER xml %]</bug_when>
[% IF user.in_group(Param('timetrackinggroup')) && (c.work_time - 0 != 0) %] [% IF user.in_group(Param('timetrackinggroup')) && (c.work_time - 0 != 0) %]
<work_time>[% PROCESS formattimeunit time_unit = c.work_time FILTER xml %]</work_time> <work_time>[% PROCESS formattimeunit time_unit = c.work_time FILTER xml %]</work_time>
...@@ -119,12 +119,16 @@ ...@@ -119,12 +119,16 @@
[%# We need to handle some fields differently. This should become [%# We need to handle some fields differently. This should become
# nicer once we have custfields, and a type attribute for the fields # nicer once we have custfields, and a type attribute for the fields
#%] #%]
[% name = '' %]
[% IF field == 'reporter' OR field == 'assigned_to' OR [% IF field == 'reporter' OR field == 'assigned_to' OR
field == 'qa_contact' %] field == 'qa_contact' %]
[% name = val.name %]
[% val = val.email %] [% val = val.email %]
[% ELSIF field == 'creation_ts' OR field == 'delta_ts' %] [% ELSIF field == 'creation_ts' OR field == 'delta_ts' %]
[% val = val FILTER time %] [% val = val FILTER time %]
[% END %] [% END %]
<[% field %]>[% val FILTER xml %]</[% field %]> <[% field %]
[% IF name != '' %]name="[% name FILTER xml %]"[% END %]
>[% val FILTER xml %]</[% field %]>
[% END %] [% END %]
[% END %] [% END %]
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