aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-08-05 01:28:52 +0000
committerlpsolit%gmail.com <>2009-08-05 01:28:52 +0000
commit26b64e70fdb9b8d88955035e85019c1d06998cdf (patch)
treed3e992b5bf8f59d3aed44dc132a51baf93fa17af /template
parentBump the version number post-release. (diff)
downloadbugzilla-26b64e70fdb9b8d88955035e85019c1d06998cdf.tar.gz
bugzilla-26b64e70fdb9b8d88955035e85019c1d06998cdf.tar.bz2
bugzilla-26b64e70fdb9b8d88955035e85019c1d06998cdf.zip
Bug 508416: Bug flags are always displayed in the XML view of bugs - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
Diffstat (limited to 'template')
-rw-r--r--template/en/default/bug/show.xml.tmpl21
1 files changed, 12 insertions, 9 deletions
diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl
index cb0b10a42..12c813d87 100644
--- a/template/en/default/bug/show.xml.tmpl
+++ b/template/en/default/bug/show.xml.tmpl
@@ -62,18 +62,21 @@
[% END %]
[%# Bug Flags %]
- [% FOREACH type = bug.flag_types %]
- [% FOREACH flag = type.flags %]
- <flag name="[% type.name FILTER xml %]"
- id="[% flag.id FILTER xml %]"
- status="[% flag.status FILTER xml %]"
- setter="[% flag.setter.login FILTER email FILTER xml %]"
- [% IF flag.requestee %]
- requestee="[% flag.requestee.login FILTER email FILTER xml %]"
+ [% IF displayfields.flag %]
+ [% FOREACH type = bug.flag_types %]
+ [% FOREACH flag = type.flags %]
+ <flag name="[% type.name FILTER xml %]"
+ id="[% flag.id FILTER xml %]"
+ status="[% flag.status FILTER xml %]"
+ setter="[% flag.setter.login FILTER email FILTER xml %]"
+ [% IF flag.requestee %]
+ requestee="[% flag.requestee.login FILTER email FILTER xml %]"
+ [% END %]
+ />
[% END %]
- />
[% END %]
[% END %]
+
[% IF displayfields.long_desc %]
[% FOREACH c = bug.longdescs %]
[% NEXT IF c.isprivate && !user.in_group(Param("insidergroup")) %]