]> 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:53:47 +0000 (00:53 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Wed, 27 Apr 2011 22:53:47 +0000 (00:53 +0200)
r/a=mkanat

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

index f5c125a5244c1648c96470fbefb7fedb12a94228..dae207f26618de69eabe4385251fe7f57efd9e23 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
       #%]