don't type __maineid, it may not be an eid actually stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 27 Nov 2009 09:36:42 +0100
branchstable
changeset 3924 4347654979e8
parent 3923 be05eeeb2db1
child 3925 25d5830b9531
don't type __maineid, it may not be an eid actually
web/views/editcontroller.py
--- a/web/views/editcontroller.py	Fri Nov 27 09:15:30 2009 +0100
+++ b/web/views/editcontroller.py	Fri Nov 27 09:36:42 2009 +0100
@@ -45,8 +45,7 @@
         form = req.form
         # so we're able to know the main entity from the repository side
         if '__maineid' in form:
-            req.set_shared_data('__maineid', typed_eid(form['__maineid']),
-                                querydata=True)
+            req.set_shared_data('__maineid', form['__maineid'], querydata=True)
         # no specific action, generic edition
         self._to_create = req.data['eidmap'] = {}
         self._pending_relations = []