Commit 0f26341c authored by Sebastien Robin's avatar Sebastien Robin

The guard was not used, fixed it


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2494 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43a9819f
......@@ -166,10 +166,9 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
for t in self.interactions.values():
if t.trigger_type == TRIGGER_WORKFLOW_METHOD:
if method_id in t.method_id:
if t.portal_type_filter is None:
return 1
elif ob.getPortalType() in t.portal_type_filter:
return 1
if ((t.portal_type_filter is None or ob.getPortalType() in t.portal_type_filter)
and self._checkTransitionGuard(t, ob)):
return 1
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