[entities] parameters should be given to fire_transition, else they are simply ignored
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 22 Sep 2015 14:20:53 +0200
changeset 10831 f1b5a5ea0da0
parent 10830 d41f13a919ff
child 10832 2350424585f8
[entities] parameters should be given to fire_transition, else they are simply ignored
entities/wfobjs.py
--- a/entities/wfobjs.py	Mon Oct 12 09:53:51 2015 +0200
+++ b/entities/wfobjs.py	Tue Sep 22 14:20:53 2015 +0200
@@ -551,7 +551,7 @@
         tr = self._get_transition(tr)
         if any(tr_ for tr_ in self.possible_transitions()
                if tr_.eid == tr.eid):
-            self.fire_transition(tr)
+            self.fire_transition(tr, comment, commentformat)
 
     def change_state(self, statename, comment=None, commentformat=None, tr=None):
         """change the entity's state to the given state (name or entity) in