diff -r 70dbba754c11 -r 440931181322 server/hooks.py --- a/server/hooks.py Fri Oct 09 15:53:42 2009 +0200 +++ b/server/hooks.py Fri Oct 09 16:31:06 2009 +0200 @@ -559,7 +559,7 @@ # inconsistency detected msg = entity.req._("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')