Updated creation form data extraction
authorThierry Florac <thierry.florac@onf.fr>
Wed, 07 Mar 2018 16:19:13 +0100
changeset 37 50aeab24ff92
parent 36 f012effb18c7
child 38 28ec9af20f9d
Updated creation form data extraction
src/pyams_alchemy/zmi/engine.py
--- a/src/pyams_alchemy/zmi/engine.py	Wed Mar 07 14:45:32 2018 +0100
+++ b/src/pyams_alchemy/zmi/engine.py	Wed Mar 07 16:19:13 2018 +0100
@@ -189,6 +189,7 @@
             self.actions['execute'].addClass('btn-primary')
 
     def createAndAdd(self, data):
+        data = data.get(self, data)
         session = get_user_session(self.context.name)
         return session.execute(data.get('query'))