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

WorkflowTool.py: in conversion, add state index conversion to fix premission...

WorkflowTool.py: in conversion, add state index conversion to fix premission roles matrix showing problem.
parent 2def958d
......@@ -349,6 +349,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
state.setDescription(sdef.description)
permission_roles = sdef.permission_roles
state.setStatePermissionRoles(permission_roles)
state.setCellRange(sorted(sdef.permission_roles.keys()),
sorted(workflow.getRoleList()),
base_id='cell')
i = -1
for permission in sorted(workflow.getWorkflowManagedPermissionList()):
i = i + 1
......
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