hooks/workflow.py
changeset 4003 b9436fe77c9e
parent 3894 27cbf98ad863
child 4024 6a14cff373c3
--- a/hooks/workflow.py	Thu Dec 03 17:17:43 2009 +0100
+++ b/hooks/workflow.py	Mon Dec 07 05:09:09 2009 -0800
@@ -227,7 +227,7 @@
                     msg = session._("transition %s isn't allowed from %s") % (
                         _(tr.name), _(fromstate.name))
                     raise ValidationError(entity.eid, {'by_transition': msg})
-                 if not tr.may_be_fired(foreid):
+                if not tr.may_be_fired(foreid):
                     msg = session._("transition may not be fired")
                     raise ValidationError(entity.eid, {'by_transition': msg})
             if entity.get('to_state'):