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

WorkflowTool.py: fix a condiction at wrong place.

parent 7dc565b1
......@@ -257,13 +257,13 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
if workflow_type_id == 'DCWorkflowDefinition':
if temp == 0:
new_id = 'converting_'+dc_workflow.id
elif workflow_type_id == 'InteractionWorkflowDefinition':
else:
new_id = dc_workflow.id
uid = self.encodeWorkflowUid(new_id)
workflow = container.newContent(id=new_id, portal_type='Workflow', temp_object=temp)
workflow.setStateVariable(dc_workflow.state_var)
workflow.setWorkflowManagedPermission(dc_workflow.permissions)
else:
elif workflow_type_id == 'InteractionWorkflowDefinition':
if temp == 0:
new_id = 'converting_'+dc_workflow.id
else:
......
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