Commit 377d8055 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

ERP5/InteractionWorkflow.py: fix a showAsXML dict key error.

parent 6b7fdd9e
...@@ -376,7 +376,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject): ...@@ -376,7 +376,7 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
portal_type='Interaction Workflow')) portal_type='Interaction Workflow'))
for prop_id in sorted(interaction_workflow_prop_id_to_show): for prop_id in sorted(interaction_workflow_prop_id_to_show):
prop_value = self.__dict__[prop_id] prop_value = self.__dict__.get(prop_id, None)
if prop_value is None or prop_value == [] or prop_value == (): if prop_value is None or prop_value == [] or prop_value == ():
prop_value = '' prop_value = ''
prop_type = interaction_workflow_prop_id_to_show[prop_id] prop_type = interaction_workflow_prop_id_to_show[prop_id]
......
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