diff -r 1b0dbcf4b214 -r 559cad62c786 hooks/workflow.py --- 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')