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

WorkflowTool.py: in getWorkflowChain fix the combination list of dc workflow and new workflow.

parent f194b339
......@@ -548,9 +548,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
for portal_type, dc_workflow_id_list in chain.iteritems():
if sorted:
dc_workflow_id_list = list(dc_workflow_id_list)
workflow_id_list.sort()
dc_workflow_id_list.sort()
portal_type_value = self.getPortalObject().portal_types._getOb(portal_type)
workflow_id_list = [workflow.getId() for workflow in portal_type_value.getTypeWorkfowList()]
workflow_id_list = portal_type_value.getTypeWorkflowList()
workflow_id_list.extend(dc_workflow_id_list)
return_dict['chain_%s' % portal_type] = ', '.join(workflow_id_list)
......
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