# HG changeset patch # User Sylvain Thénault # Date 1255099683 -7200 # Node ID 6176ef2f64885f7cda9d403eed6603efaafd900f # Parent 4409311813224858c5ffc20ebb9b4964577f6ec0 give correctly typed eid diff -r 440931181322 -r 6176ef2f6488 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))