Commit 1e05d322 authored by wenjie.zheng's avatar wenjie.zheng

Workflow.py: skip getTypeWorkflow if Type is none. This correction corresponds...

Workflow.py: skip getTypeWorkflow if Type is none. This correction corresponds to the worklist generation.
parent 3052a987
......@@ -372,6 +372,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
workflow_tool = portal.portal_workflow
result = []
append = result.append
if info.object.getTypeInfo() is not None:
for workflow_id in info.object.getTypeInfo().getTypeWorkflowList():
append(info.object.getTypeInfo().getId())
return result
......
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