web/views/workflow.py
branchstable
changeset 3957 4a71754bf5eb
parent 3953 19aefd78f61b
child 3998 94cc7cad3d2d
child 4212 ab6573088b4a
--- a/web/views/workflow.py	Tue Dec 01 12:06:17 2009 +0100
+++ b/web/views/workflow.py	Tue Dec 01 17:38:35 2009 +0100
@@ -231,7 +231,7 @@
     def object_allowed_transition_vocabulary(self, rtype, limit=None):
         if not self.edited_entity.has_eid():
             return self.workflow_states_for_relation('allowed_transition')
-        return self.subject_relation_vocabulary(rtype, limit)
+        return self.object_relation_vocabulary(rtype, limit)
 
 
 class StateEditionForm(autoform.AutomaticEntityForm):
@@ -290,7 +290,6 @@
         for state in self.entity.reverse_state_of:
             state.complete()
             yield state.eid, state
-
         for transition in self.entity.reverse_transition_of:
             transition.complete()
             yield transition.eid, transition