web/views/workflow.py
changeset 7988 d72a2881d53c
parent 7894 ad0eeb0f7a8d
child 7992 4ff9f25cb06e
--- a/web/views/workflow.py	Fri Oct 21 11:36:30 2011 +0200
+++ b/web/views/workflow.py	Fri Oct 21 13:05:45 2011 +0200
@@ -345,7 +345,7 @@
         if not eids:
             return []
         return _wf_items_for_relation(form._cw, eids[0], 'state_of', field)
-    return ff.relvoc_unrelated(entity, field.name, field.role)
+    return field.relvoc_unrelated(form)
 
 _afs.tag_subject_of(('*', 'destination_state', '*'), 'main', 'attributes')
 _affk.tag_subject_of(('*', 'destination_state', '*'),
@@ -363,7 +363,7 @@
         if eids:
             return _wf_items_for_relation(form._cw, eids[0], 'transition_of', field)
         return []
-    return ff.relvoc_unrelated(entity, field.name, field.role)
+    return field.relvoc_unrelated(form)
 
 _afs.tag_subject_of(('State', 'allowed_transition', '*'), 'main', 'attributes')
 _affk.tag_subject_of(('State', 'allowed_transition', '*'),