Commit b8613dd3 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

ERP5WorkflowTool.py: deploy an universal referene getter.

parent c19c3137
...@@ -398,7 +398,7 @@ class ERP5WorkflowTool(BaseTool, OriginalWorkflowTool): ...@@ -398,7 +398,7 @@ class ERP5WorkflowTool(BaseTool, OriginalWorkflowTool):
""" """
for workflow in (wf_id and (self[wf_id],) or self.getWorkflowValueListFor(ob.getPortalType())): for workflow in (wf_id and (self[wf_id],) or self.getWorkflowValueListFor(ob.getPortalType())):
state = workflow._getWorkflowStateOf(ob) state = workflow._getWorkflowStateOf(ob)
if state and transition_id in state.getDestinationIdList(): if state and transition_id in state.getDestinationReferenceList():
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