web/views/editcontroller.py
changeset 6033 09db6f4619c9
parent 6015 ee76e8e72776
parent 6029 aac5dba278c7
child 6384 89d5b339ebdd
--- a/web/views/editcontroller.py	Wed Jul 28 16:31:23 2010 +0200
+++ b/web/views/editcontroller.py	Wed Jul 28 16:31:32 2010 +0200
@@ -177,7 +177,7 @@
         """edit / create / copy an entity and return its eid"""
         etype = formparams['__type']
         entity = self._cw.vreg['etypes'].etype_class(etype)(self._cw)
-        entity.eid = formparams['eid']
+        entity.eid = valerror_eid(formparams['eid'])
         is_main_entity = self._cw.form.get('__maineid') == formparams['eid']
         # let a chance to do some entity specific stuff
         entity.cw_adapt_to('IEditControl').pre_web_edit()