web/views/workflow.py
changeset 7875 65e460690139
parent 7598 781def950a85
child 7894 ad0eeb0f7a8d
--- a/web/views/workflow.py	Mon Sep 26 19:46:04 2011 +0200
+++ b/web/views/workflow.py	Tue Sep 27 18:46:36 2011 +0200
@@ -340,7 +340,7 @@
 def transition_states_vocabulary(form, field):
     entity = form.edited_entity
     if not entity.has_eid():
-        eids = entity.linked_to('transition_of', 'subject')
+        eids = form.linked_to.get(('transition_of', 'subject'))
         if not eids:
             return []
         return _wf_items_for_relation(form._cw, eids[0], 'state_of', field)
@@ -358,7 +358,7 @@
 def state_transitions_vocabulary(form, field):
     entity = form.edited_entity
     if not entity.has_eid():
-        eids = entity.linked_to('state_of', 'subject')
+        eids = form.linked_to.get(('state_of', 'subject'))
         if eids:
             return _wf_items_for_relation(form._cw, eids[0], 'transition_of', field)
         return []