cubicweb/wfutils.py
branch3.26
changeset 12432 2fcb53ee5178
parent 11963 64ecd4d96ac7
child 12567 26744ad37953
--- a/cubicweb/wfutils.py	Tue Oct 09 16:24:12 2018 +0200
+++ b/cubicweb/wfutils.py	Mon Oct 29 10:04:31 2018 +0100
@@ -124,8 +124,8 @@
         wf.cw_set(initial_state=states[wfdef['initial_state']])
 
     for trname, trdef in wfdef['transitions'].items():
-        tr = (wf.transition_by_name(trname) or
-              cnx.create_entity('Transition', name=trname))
+        tr = (wf.transition_by_name(trname)
+              or cnx.create_entity('Transition', name=trname))
         tr.cw_set(transition_of=wf)
         if trdef.get('tostate'):
             tr.cw_set(destination_state=states[trdef['tostate']])