web/views/editcontroller.py
changeset 3998 94cc7cad3d2d
parent 3720 5376aaadd16b
parent 3924 4347654979e8
child 4007 91d11fda4aa0
--- a/web/views/editcontroller.py	Mon Nov 23 14:13:53 2009 +0100
+++ b/web/views/editcontroller.py	Thu Dec 03 17:17:43 2009 +0100
@@ -70,6 +70,9 @@
         req = self._cw
         self.errors = []
         self.relations_rql = []
+        # so we're able to know the main entity from the repository side
+        if '__maineid' in form:
+            req.set_shared_data('__maineid', form['__maineid'], querydata=True)
         # no specific action, generic edition
         self._to_create = req.data['eidmap'] = {}
         self._pending_relations = []