Commit 7cbad2a2 authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: in case of a workflow is defined in both workflow list, type...

WorkflowTool.py: in case of a workflow is defined in both workflow list, type worklist should have priority to load.
parent 41a94a86
......@@ -209,6 +209,8 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
workflow_list.append(self._getOb(workflow_id))
# DCWorkflow assignment
for wf_id in self.getChainFor(ob):
if portal_type is not None and wf_id in portal_type.getTypeWorkflowList():
continue
wf = self.getWorkflowById(wf_id)
if wf is not None:
workflow_list.append(wf)
......
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