Commit 99004f61 authored by wenjie.zheng's avatar wenjie.zheng

WorkflowTool.py: resolve getTypeInfo error when add gadget in access tab.

parent 3759fa55
...@@ -700,7 +700,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -700,7 +700,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
worklist_dict = {} worklist_dict = {}
document = info.object document = info.object
document_pt = document.getTypeInfo() document_pt = None
if document is not None:
document_pt = document.getTypeInfo()
if document_pt is not None: if document_pt is not None:
workflow_list = document_pt.getTypeWorkflowList() workflow_list = document_pt.getTypeWorkflowList()
......
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