From 55f7afb80bc18e136d46afb0c3d7a1ae46e56def Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 28 Apr 2011 00:53:47 +0200 Subject: Bug 653263: XML bug files do not contain fields whose value evaluates to "false" r/a=mkanat --- template/en/default/bug/show.xml.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'template') 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 @@ [% 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 #%] -- cgit v1.2.3-24-g4f1b