# HG changeset patch # User Sylvain Thénault # Date 1259509547 -3600 # Node ID c1050081ac4bbe8a1424e509ef9b6f20e2c88d61 # Parent 346e592524174e96f569be3f70bb4a3ac033ec67 fix inline-creation form when called through ajax diff -r 346e59252417 -r c1050081ac4b 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