Empty DS output params show empty `<item>` element in XML
A bug in 2.2, submitted by nickdunn on 04 January 2011
Announcement
Symphony's issue tracker has been moved to Github.
Issues are displayed here for reference only and cannot be created or edited.
Browse
Closed#462: Empty DS output params show empty `<item>` element in XML
This issue is closed.
Output params are now visible in the param pool. When a DS output param is empty its value is actually an array with one item: an empty string:
This results in XML like:
This is remedies by checking array length and its first value:
There might be a more elegant way but I’m too tired to recall.