web/views/editforms.py
changeset 3478 f043f71017a3
parent 3476 6e927b729ae1
child 3479 d4fbf41adb5b
--- a/web/views/editforms.py	Fri Sep 25 11:50:22 2009 +0200
+++ b/web/views/editforms.py	Fri Sep 25 11:53:06 2009 +0200
@@ -125,7 +125,7 @@
     def _build_renderer(self, entity, rtype, role):
         return self._cw.vreg['formrenderers'].select(
             'base', self._cw, entity=entity, display_label=False,
-            display_help=False, display_fields=[(rtype, role)], table_class='',
+            display_help=False, table_class='',
             button_bar_class='buttonbar', display_progress_div=False)
 
     def _build_form(self, entity, rtype, role, formid, default, onsubmit, reload,
@@ -141,6 +141,7 @@
         form = self._cw.vreg['forms'].select(
             formid, self._cw, entity=entity, domid='%s-form' % divid,
             cssstyle='display: none', onsubmit=onsubmit, action='#',
+            display_fields=[(rtype, role)],
             form_buttons=[SubmitButton(), Button(stdmsgs.BUTTON_CANCEL,
                                                  onclick=cancelclick)],
             **formargs)