fix inline-creation form when called through ajax stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Sun, 29 Nov 2009 16:45:47 +0100
branchstable
changeset 3939 c1050081ac4b
parent 3938 346e59252417
child 3940 16fe0856c933
child 3941 dc6a04997b77
fix inline-creation form when called through ajax
web/views/editforms.py
--- 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