Commit 35839f79 authored by Jean-Paul Smets's avatar Jean-Paul Smets

Mimic implementation of DCWorkflow.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15978 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e5596df
...@@ -178,11 +178,10 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject): ...@@ -178,11 +178,10 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
NOTE: this method is not used in ERP5 because NOTE: this method is not used in ERP5 because
of transition_list approach of transition_list approach
''' '''
for t in self.interactions.values(): tdef = self.interactions.get(method_id, None)
if t.trigger_type == TRIGGER_WORKFLOW_METHOD: if (tdef is not None and
if method_id in t.method_id: tdef.trigger_type == TRIGGER_WORKFLOW_METHOD and
if ((t.portal_type_filter is None or ob.getPortalType() in t.portal_type_filter) self._checkTransitionGuard(tdef, ob)):
and self._checkTransitionGuard(t, ob)):
return 1 return 1
return 0 return 0
......
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