Commit 74249cd5 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

WorkflowTool.py: resolve the error when state has no premission_roles, matrix...

WorkflowTool.py: resolve the error when state has no premission_roles, matrix index should not be generated.
parent ba9c8374
...@@ -352,6 +352,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -352,6 +352,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
state.setDescription(sdef.description) state.setDescription(sdef.description)
permission_roles = sdef.permission_roles permission_roles = sdef.permission_roles
state.setStatePermissionRoles(permission_roles) state.setStatePermissionRoles(permission_roles)
if sdef.permission_roles is not None:
state.setCellRange(sorted(sdef.permission_roles.keys()), state.setCellRange(sorted(sdef.permission_roles.keys()),
sorted(workflow.getRoleList()), sorted(workflow.getRoleList()),
base_id='cell') base_id='cell')
......
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