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,8 +372,9 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
workflow_tool = portal.portal_workflow
result = []
append = result.append
for workflow_id in info.object.getTypeInfo().getTypeWorkflowList():
append(info.object.getTypeInfo().getId())
if info.object.getTypeInfo() is not None:
for workflow_id in info.object.getTypeInfo().getTypeWorkflowList():
append(info.object.getTypeInfo().getId())
return result
portal_type_list = getPortalTypeListForWorkflow(self.id)
......
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