web/views/editforms.py
branchstable
changeset 3939 c1050081ac4b
parent 3933 865b6be915ec
child 3941 dc6a04997b77
--- a/web/views/editforms.py	Sat Nov 28 12:16:30 2009 +0100
+++ b/web/views/editforms.py	Sun Nov 29 16:45:47 2009 +0100
@@ -490,7 +490,8 @@
         form = self.vreg['forms'].select('edition', self.req,
                                          entity=entity,
                                          form_renderer_id='inline',
-                                         mainform=False, copy_nav_params=False,
+                                         copy_nav_params=False,
+                                         mainform=not self.pform,
                                          parent_form=self.pform,
                                          **self.extra_kwargs)
         #assert form.parent_form