From: Frédéric Buclin Date: Wed, 27 Apr 2011 22:55:34 +0000 (+0200) Subject: Bug 653263: XML bug files do not contain fields whose value evaluates to "false" X-Git-Tag: bugzilla-4.0.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e97a9d637d63973d98913e2fc01537cac9e53c0;p=thirdparty%2Fbugzilla.git Bug 653263: XML bug files do not contain fields whose value evaluates to "false" r/a=mkanat --- diff --git a/template/en/default/bug/show.xml.tmpl b/template/en/default/bug/show.xml.tmpl index 2349602dc8..8034212bd1 100644 --- a/template/en/default/bug/show.xml.tmpl +++ b/template/en/default/bug/show.xml.tmpl @@ -121,7 +121,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 #%]