Commit c6ed24e3 authored by Aurel's avatar Aurel

if call workflow method with activate_kw, propagate kw to reindexObject


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16509 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 92b3f9a9
......@@ -47,7 +47,7 @@ def DCWorkflowDefinition_notifyWorkflowMethod(self, ob, method_id, args=None, kw
raise Unauthorized(method_id)
self._changeStateOf(ob, tdef, kw)
if getattr(ob, 'reindexObject', None) is not None:
ob.reindexObject()
ob.reindexObject(activate_kw=kw.get('activate_kw', {}))
def DCWorkflowDefinition_notifyBefore(self, ob, action, args=None, kw=None, transition_list=None):
'''
......
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