Commit 2ffd8801 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Workflow.py: in showAsXML, turn property_value into an empty string when it is an empty tuple.

parent 9c222e4d
...@@ -832,7 +832,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject): ...@@ -832,7 +832,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
property_value = tdef.getPermissionList() property_value = tdef.getPermissionList()
if property_id == 'expr': if property_id == 'expr':
property_value = tdef.getExpression() property_value = tdef.getExpression()
if property_value is None or property_value == []: if property_value is None or property_value == [] or property_value == ():
property_value = '' property_value = ''
elif property_id != 'expr': elif property_id != 'expr':
property_value = tuple(property_value) property_value = tuple(property_value)
......
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