[forms] update code broken by linkto refactoring
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 Oct 2011 13:05:45 +0200
changeset 7988 d72a2881d53c
parent 7986 552d41237156
child 7989 db76e8aaec29
[forms] update code broken by linkto refactoring
web/views/workflow.py
--- 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', '*'),