Commit 0d04f62b authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: convert state's type_list if it has been defined.

parent a041a96d
......@@ -332,6 +332,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
state = workflow.newContent(portal_type='State', temp_object=temp)
if sdef.title == '' or sdef.title is None:
sdef.title = UpperCase(sdef.id)
if hasattr(sdef, 'type_list'): state.setStateType(sdef.type_list)
state.setTitle(sdef.title)
state.setReference(sdef.id)
state.setDescription(sdef.description)
......
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