Commit 3a7e33d5 authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: trigger method id of interaction workflow must match a class method id.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2674 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d38c5d18
......@@ -207,7 +207,7 @@ def initializePortalTypeDynamicProperties(self, klass, ptype, recursive=0):
tdef = wf.interactions.get(tr_id, None)
if tdef.trigger_type == TRIGGER_WORKFLOW_METHOD:
for imethod_id in tdef.method_id:
method_id = convertToMixedCase(imethod_id)
method_id = imethod_id
if not hasattr(klass, method_id):
method = WorkflowMethod(klass._doNothing, imethod_id)
setattr(prop_holder, method_id, method) # Attach to portal_type
......
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