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

WorkflowTool.py: correct doActionFor compatibility to avoid adding prefix multiple times.

parent 94cbc855
...@@ -169,8 +169,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -169,8 +169,9 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
for wf in workflow_list: for wf in workflow_list:
if wf.getPortalType() == 'Workflow': if wf.getPortalType() == 'Workflow':
# workflow compatibility # workflow compatibility
action = 'transition_' + action action = 'transition_' + action_ref
else: action = action_ref else: action = action_ref
LOG(" wf is '%s', action is '%s'"%(wf.getId(), action),WARNING, " in WOrkfkowTool.py 174")
if wf.isActionSupported(ob, action, **kw): if wf.isActionSupported(ob, action, **kw):
found = 1 found = 1
break break
......
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