web/views/editforms.py
changeset 3388 b8be8fc77c27
parent 3369 7b88d12b4ee2
parent 3384 f76a38731bc1
child 3396 fb261afd49cd
--- a/web/views/editforms.py	Tue Sep 22 12:11:12 2009 +0200
+++ b/web/views/editforms.py	Tue Sep 22 13:08:42 2009 +0200
@@ -484,12 +484,6 @@
 
     def add_hiddens(self, form, entity, peid, rtype, role):
         # to ease overriding (see cubes.vcsfile.views.forms for instance)
-        if self.keep_entity(form, entity, peid, rtype):
-            if entity.has_eid():
-                rval = entity.eid
-            else:
-                rval = INTERNAL_FIELD_VALUE
-            form.form_add_hidden('edit%s-%s:%s' % (role[0], rtype, peid), rval)
         form.form_add_hidden(name='%s:%s' % (rtype, peid), value=entity.eid,
                              id='rel-%s-%s-%s'  % (peid, rtype, entity.eid))