summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-04-28 00:53:47 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-04-28 00:53:47 +0200
commit55f7afb80bc18e136d46afb0c3d7a1ae46e56def (patch)
tree3061a06a62143facabe9d8ab1abad16659fc0149 /template/en/default
parent645ebe3d40e6a148dca52054e91483253b3d7568 (diff)
downloadbugzilla-55f7afb80bc18e136d46afb0c3d7a1ae46e56def.tar.gz
bugzilla-55f7afb80bc18e136d46afb0c3d7a1ae46e56def.tar.xz
Bug 653263: XML bug files do not contain fields whose value evaluates to "false"
r/a=mkanat
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/bug/show.xml.tmpl8
1 files changed, 7 insertions, 1 deletions
diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl
index f5c125a52..dae207f26 100644
--- a/template/en/default/bug/show.xml.tmpl
+++ b/template/en/default/bug/show.xml.tmpl
@@ -120,7 +120,13 @@
</bugzilla>
[% BLOCK bug_field %]
- [% FOREACH val = bug.$field %]
+ [% field_values = bug.$field %]
+ [%# Work around TT bug https://rt.cpan.org/Public/Bug/Display.html?id=9802 %]
+ [% IF bug.$field.size == 1 %]
+ [% field_values = [bug.$field.first] %]
+ [% END %]
+
+ [% FOREACH val = field_values %]
[%# We need to handle some fields differently. This should become
# nicer once we have custfields, and a type attribute for the fields
#%]