diff options
author | lpsolit%gmail.com <> | 2005-11-08 05:32:27 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-11-08 05:32:27 +0100 |
commit | 9c54e5722dfb00dad2c14ad5695424ba43cdfb0f (patch) | |
tree | 9ac2a0127a132c052f9ef6d518ee36f1225a9e7e /template | |
parent | f0f3541a44b833f1161709e79ae3242ccd346d64 (diff) | |
download | bugzilla-9c54e5722dfb00dad2c14ad5695424ba43cdfb0f.tar.gz bugzilla-9c54e5722dfb00dad2c14ad5695424ba43cdfb0f.tar.xz |
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
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/bug/show.xml.tmpl | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl index 0a0966890..6fe3f3180 100644 --- a/template/en/default/bug/show.xml.tmpl +++ b/template/en/default/bug/show.xml.tmpl @@ -51,10 +51,22 @@ [% 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 %] [% FOREACH c = bug.longdescs %] [% NEXT IF c.isprivate && !UserInGroup(Param("insidergroup")) %] - <long_desc> + <long_desc isprivate="[% c.isprivate FILTER xml %]"> <who>[% c.email FILTER xml %]</who> <bug_when>[% c.time FILTER time FILTER xml %]</bug_when> <thetext>[% c.body FILTER xml %]</thetext> @@ -66,20 +78,19 @@ [% FOREACH a = bug.attachments %] [% NEXT IF a.isprivate && !UserInGroup(Param("insidergroup")) %] <attachment - [% IF a.isobsolete %] - isobsolete="1" - [% END %] - [% IF a.ispatch %] - ispatch="1" - [% END %] + isobsolete="[% a.isobsolete FILTER xml %]" + ispatch="[% a.ispatch FILTER xml %]" + isprivate="[% a.isprivate FILTER xml %]" > <attachid>[% a.id %]</attachid> <date>[% a.attached FILTER time FILTER xml %]</date> <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 %] - <data>[% a.data FILTER base64 %]</data> + <data encoding="base64">[% a.data FILTER base64 %]</data> [% END %] + [% FOREACH flag = a.flags %] <flag name="[% flag.type.name FILTER xml %]" status="[% flag.status FILTER xml %]" |