Commit 3023b34a authored by Romain Courteaud's avatar Romain Courteaud

Bug fix: correct a typing error.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2694 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 852b9280
......@@ -857,14 +857,14 @@ class ERP5WorkflowTool(WorkflowTool):
return apply(func, args, kw)
no_interaction = 0
for w in wf_list:
if w.__class__.__name__ == 'InteractionWorkflowDefinition':
if w.__class__.__name__ != 'InteractionWorkflowDefinition':
no_interaction = 1
for w in wfs:
w.notifyBefore(ob, method_id, args=args, kw=kw)
# Check if there is at least 1 non interaction workflow
if no_interaction:
for w in wf_list:
if w.__class__.__name__ == 'InteractionWorkflowDefinition':
if w.__class__.__name__ != 'InteractionWorkflowDefinition':
result = self._invokeWithNotification(
[], ob, method_id, w.wrapWorkflowMethod,
(ob, method_id, func, args, kw), {})
......
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