Commit a72778db authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: avoid converting an empty value to tuple.

parent 09626b42
......@@ -950,6 +950,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
state_ref_list.append(state_ref)
property_value = tuple(state_ref_list)
if property_id == 'matched_portal_type_list':
if property_value is not None:
property_value = tuple(property_value)
property_type = qdef.getPropertyType(property_id)
sub_object = SubElement(worklist, property_id, attrib=dict(type=property_type))
......
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