Commit 55f7afb8 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 653263: XML bug files do not contain fields whose value evaluates to "false"

r/a=mkanat
parent 645ebe3d
......@@ -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
#%]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment