Commit 5209ef4c authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: get workflow id from type_workflow_list.

parent 5a421ff7
......@@ -699,8 +699,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
if document_pt is not None:
workflow_list = document_pt.getTypeWorkflowList()
for wf in workflow_list:
wf_id = wf.getReference()
for wf_id in workflow_list:
did[wf_id] = None
wf = self.getPortalObject().portal_workflow._getOb(wf_id, None)
if wf is None:
......
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