web/box.py
changeset 4161 4273f5094651
parent 4094 8b0c6c272ad9
child 4252 6c4f109c2b03
--- a/web/box.py	Mon Dec 21 19:52:21 2009 +0100
+++ b/web/box.py	Mon Dec 21 20:00:18 2009 +0100
@@ -221,7 +221,7 @@
         form = self.vreg['forms'].select('edition', self._cw, rset=self.cw_rset,
                                          row=self.cw_row or 0)
         field = form.field_by_name(self.rtype, get_role(self), entity.e_schema)
-        for _, eid in form.form_field_vocabulary(field):
+        for _, eid in field.choices(form):
             if eid is not None:
                 rset = self._cw.eid_rset(eid)
                 entities.append(rset.get_entity(0, 0))