Commit 0245d4a6 authored by iv's avatar iv

ERP5Workflow: fix doActionFor by not forgetting to pass optional arguments

parent cab79300
...@@ -213,7 +213,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -213,7 +213,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
raise WorkflowException(_(u'Requested workflow definition not found.')) raise WorkflowException(_(u'Requested workflow definition not found.'))
if workflow.getPortalType() == 'Workflow': if workflow.getPortalType() == 'Workflow':
action_id = workflow.getTransitionIdByReference(action_reference) action_id = workflow.getTransitionIdByReference(action_reference)
result = workflow.doActionFor(current_object, action_id) result = workflow.doActionFor(current_object, action_id, **kw)
return result return result
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
......
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