hooks/workflow.py
changeset 3629 559cad62c786
parent 3589 a5432f99f2d9
child 3654 e4bed64e0ad7
--- a/hooks/workflow.py	Wed Oct 07 12:38:30 2009 +0200
+++ b/hooks/workflow.py	Fri Oct 09 16:39:26 2009 +0200
@@ -242,7 +242,7 @@
                 # inconsistency detected
                 msg = session._("state doesn't belong to entity's current workflow")
                 raise ValidationError(entity.eid, {'to_state': msg})
-            tostate = wftr.get_exit_point(entity['to_state'])
+            tostate = wftr.get_exit_point(forentity, entity['to_state'])
             if tostate is not None:
                 # reached an exit point
                 msg = session._('exiting from subworkflow %s')