give correctly typed eid stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 09 Oct 2009 16:48:03 +0200
branchstable
changeset 3631 6176ef2f6488
parent 3628 440931181322
child 3632 874f5a73e89f
give correctly typed eid
web/views/editcontroller.py
--- a/web/views/editcontroller.py	Fri Oct 09 16:31:06 2009 +0200
+++ b/web/views/editcontroller.py	Fri Oct 09 16:48:03 2009 +0200
@@ -142,7 +142,7 @@
             todelete = self.req.list_form_param('__delete', formparams, pop=True)
             self.delete_relations(parse_relations_descr(todelete))
         if formparams.has_key('__cloned_eid'):
-            entity.copy_relations(formparams['__cloned_eid'])
+            entity.copy_relations(typed_eid(formparams['__cloned_eid']))
         if formparams.has_key('__insert'):
             toinsert = self.req.list_form_param('__insert', formparams, pop=True)
             self.insert_relations(parse_relations_descr(toinsert))