Commit 9c54e572 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 307328: show.xml.tmpl now includes bug flags as well as some other missing…

Bug 307328: show.xml.tmpl now includes bug flags as well as some other missing fields and attributes (required by importxml.pl) - Patch by Greg Hendricks <ghendricks@novell.com> r=LpSolit a=myk
parent f0f3541a
...@@ -51,10 +51,22 @@ ...@@ -51,10 +51,22 @@
[% END %] [% END %]
[% END %] [% END %]
[%# Bug Flags %]
[% FOREACH type = bug.flag_types %]
[% FOREACH flag = type.flags %]
<flag name="[% type.name FILTER xml %]"
status="[% flag.status FILTER xml %]"
setter="[% flag.setter.login FILTER xml %]"
[% IF flag.requestee %]
requestee="[% flag.requestee.login FILTER xml %]"
[% END %]
/>
[% END %]
[% END %]
[% IF displayfields.long_desc %] [% IF displayfields.long_desc %]
[% FOREACH c = bug.longdescs %] [% FOREACH c = bug.longdescs %]
[% NEXT IF c.isprivate && !UserInGroup(Param("insidergroup")) %] [% NEXT IF c.isprivate && !UserInGroup(Param("insidergroup")) %]
<long_desc> <long_desc isprivate="[% c.isprivate FILTER xml %]">
<who>[% c.email FILTER xml %]</who> <who>[% 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>
<thetext>[% c.body FILTER xml %]</thetext> <thetext>[% c.body FILTER xml %]</thetext>
...@@ -66,20 +78,19 @@ ...@@ -66,20 +78,19 @@
[% FOREACH a = bug.attachments %] [% FOREACH a = bug.attachments %]
[% NEXT IF a.isprivate && !UserInGroup(Param("insidergroup")) %] [% NEXT IF a.isprivate && !UserInGroup(Param("insidergroup")) %]
<attachment <attachment
[% IF a.isobsolete %] isobsolete="[% a.isobsolete FILTER xml %]"
isobsolete="1" ispatch="[% a.ispatch FILTER xml %]"
[% END %] isprivate="[% a.isprivate FILTER xml %]"
[% IF a.ispatch %]
ispatch="1"
[% END %]
> >
<attachid>[% a.id %]</attachid> <attachid>[% a.id %]</attachid>
<date>[% a.attached FILTER time FILTER xml %]</date> <date>[% a.attached FILTER time FILTER xml %]</date>
<desc>[% a.description FILTER xml %]</desc> <desc>[% a.description FILTER xml %]</desc>
<ctype>[% a.contenttype FILTER xml %]</ctype> <filename>[% a.filename FILTER xml %]</filename>
<type>[% a.contenttype FILTER xml %]</type>
[% IF displayfields.attachmentdata %] [% IF displayfields.attachmentdata %]
<data>[% a.data FILTER base64 %]</data> <data encoding="base64">[% a.data FILTER base64 %]</data>
[% END %] [% END %]
[% FOREACH flag = a.flags %] [% FOREACH flag = a.flags %]
<flag name="[% flag.type.name FILTER xml %]" <flag name="[% flag.type.name FILTER xml %]"
status="[% flag.status FILTER xml %]" status="[% flag.status FILTER xml %]"
......
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