Updated creation form management
authorThierry Florac <thierry.florac@onf.fr>
Wed, 07 Mar 2018 16:09:54 +0100
changeset 58 94b04a0c399d
parent 57 18a4afc2ab51
child 59 462c2d3d3b9f
Updated creation form management
src/pyams_workflow/zmi/transition.py
--- a/src/pyams_workflow/zmi/transition.py	Wed Mar 07 16:09:39 2018 +0100
+++ b/src/pyams_workflow/zmi/transition.py	Wed Mar 07 16:09:54 2018 +0100
@@ -69,6 +69,7 @@
             self.actions['action'].addClass('btn-primary')
 
     def createAndAdd(self, data):
+        data = data.get(self, data)
         info = IWorkflowInfo(self.context)
         info.fire_transition(self.transition.transition_id, comment=data.get('comment'))
         info.fire_automatic()