web/views/editcontroller.py
branchstable
changeset 9590 048d6de92b63
parent 9439 549c999d06d2
child 9635 aaf099172bb9
--- a/web/views/editcontroller.py	Wed Mar 26 11:08:09 2014 +0100
+++ b/web/views/editcontroller.py	Wed Feb 26 14:50:13 2014 +0100
@@ -272,7 +272,7 @@
             errors = dict((f.role_name(), unicode(ex)) for f, ex in self.errors)
             raise ValidationError(valerror_eid(entity.eid), errors)
         if eid is None: # creation or copy
-            entity.eid = self._insert_entity(etype, formparams['eid'], rqlquery)
+            entity.eid = eid = self._insert_entity(etype, formparams['eid'], rqlquery)
         elif rqlquery.edited: # edition of an existant entity
             self._update_entity(eid, rqlquery)
         if is_main_entity: