Commit aede92fa authored by Jérome Perrin's avatar Jérome Perrin

Bug fix: wrapping a workflow method keeps the return value of the method


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4067 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0969d2d
...@@ -919,6 +919,7 @@ def WorkflowTool_wrapWorkflowMethod(self, ob, method_id, func, args, kw): ...@@ -919,6 +919,7 @@ def WorkflowTool_wrapWorkflowMethod(self, ob, method_id, func, args, kw):
# Call notifySuccess on each workflow # Call notifySuccess on each workflow
for w in wfs: for w in wfs:
w.notifySuccess(ob, method_id, result, args=args, kw=kw) w.notifySuccess(ob, method_id, result, args=args, kw=kw)
return result
WorkflowTool.wrapWorkflowMethod = WorkflowTool_wrapWorkflowMethod WorkflowTool.wrapWorkflowMethod = WorkflowTool_wrapWorkflowMethod
......
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