web/views/forms.py
branchstable
changeset 4658 25de2eb0432b
parent 4583 356f08325072
child 4659 f8326ff98f37
--- a/web/views/forms.py	Tue Feb 23 08:41:06 2010 +0100
+++ b/web/views/forms.py	Tue Feb 23 12:43:15 2010 +0100
@@ -223,8 +223,9 @@
             self.edited_entity = rset.complete_entity(row or 0, col or 0)
         msg = kwargs.pop('submitmsg', None)
         super(EntityFieldsForm, self).__init__(_cw, rset, row, col, **kwargs)
-        self.add_hidden('__type', self.edited_entity.__regid__, eidparam=True)
-        self.add_hidden('eid', self.edited_entity.eid)
+        self.add_hidden('__type', self.edited_entity.__regid__, eidparam=True,
+                        ignore_req_params=True)
+        self.add_hidden('eid', self.edited_entity.eid, ignore_req_params=True)
         if kwargs.get('mainform', True): # mainform default to true in parent
             self.add_hidden(u'__maineid', self.edited_entity.eid)
             # If we need to directly attach the new object to another one