fix ze fix stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Sun, 29 Nov 2009 23:16:40 +0100
branchstable
changeset 3941 dc6a04997b77
parent 3939 c1050081ac4b
child 3942 32da110d7168
fix ze fix
web/views/editforms.py
--- a/web/views/editforms.py	Sun Nov 29 16:45:47 2009 +0100
+++ b/web/views/editforms.py	Sun Nov 29 23:16:40 2009 +0100
@@ -491,9 +491,11 @@
                                          entity=entity,
                                          form_renderer_id='inline',
                                          copy_nav_params=False,
-                                         mainform=not self.pform,
+                                         mainform=False,
                                          parent_form=self.pform,
                                          **self.extra_kwargs)
+        if self.pform is None:
+            form.restore_previous_post(self.session_key())
         #assert form.parent_form
         self.add_hiddens(form, entity)
         return form