]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 653263: XML bug files do not contain fields whose value evaluates to "false"
authorFrédéric Buclin <LpSolit@gmail.com>
Wed, 27 Apr 2011 22:55:34 +0000 (00:55 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 27 Apr 2011 22:55:34 +0000 (00:55 +0200)
r/a=mkanat

template/en/default/bug/show.xml.tmpl

index 2349602dc892b42888b336480913d35ac83bb649..8034212bd1dd8e81da51d5d3f32021207255678b 100644 (file)
 </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
       #%]