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

WorkflowTool.py:

deal with empty transition guard expression in conversion.
parent f57e7d71
......@@ -344,7 +344,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
transition.setRoleList(tdef.guard.roles)
transition.setPermissionList(tdef.guard.permissions)
transition.setGroupList(tdef.guard.groups)
transition.setExpression(tdef.guard.expr)
if tdef.guard.expr is not None:
transition.setExpression(tdef.guard.expr.text)
else: transition.setExpression('')
# create states (portal_type = State)
for sid in dc_workflow.states:
sdef = dc_workflow.states.get(sid)
......
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