web/views/editforms.py
changeset 3384 f76a38731bc1
parent 2686 c700ace6ebfd
child 3388 b8be8fc77c27
--- a/web/views/editforms.py	Wed Aug 05 08:40:20 2009 +0200
+++ b/web/views/editforms.py	Wed Aug 05 09:05:40 2009 +0200
@@ -481,12 +481,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))