web/views/editcontroller.py
changeset 3674 387d51af966d
parent 3463 bc2ee1d059fd
parent 3631 6176ef2f6488
child 3720 5376aaadd16b
--- a/web/views/editcontroller.py	Tue Oct 13 18:21:24 2009 +0200
+++ b/web/views/editcontroller.py	Thu Oct 15 10:31:54 2009 +0200
@@ -157,7 +157,7 @@
             todelete = self._cw.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._cw.list_form_param('__insert', formparams, pop=True)
             self.insert_relations(parse_relations_descr(toinsert))