web/views/editforms.py
changeset 3460 e4843535db25
parent 3457 0924d0d08d60
child 3476 6e927b729ae1
--- a/web/views/editforms.py	Thu Sep 24 00:23:32 2009 +0200
+++ b/web/views/editforms.py	Thu Sep 24 00:24:21 2009 +0200
@@ -297,8 +297,9 @@
     def render_form(self, entity):
         """fetch and render the form"""
         self.form_title(entity)
-        form = self._cw.vreg['forms'].select('edition', self._cw, rset=entity.rset,
-                                             row=entity.row, col=entity.col, entity=entity,
+        form = self._cw.vreg['forms'].select('edition', self._cw, rset=entity.cw_rset,
+                                             row=entity.cw_row, col=entity.cw_col,
+                                             entity=entity,
                                              submitmsg=self.submited_message())
         self.init_form(form, entity)
         self.w(form.form_render(formvid=u'edition'))