Commit 7b42e840 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[workflow] fix potential destination for go back transition

branch : stable
parent 322c3dd96dd5
......@@ -270,8 +270,10 @@ class Transition(BaseTransition):
yield self.destination_state[0]
except IndexError:
for state in self.reverse_allowed_transition:
yield state
for incomingstate in self.reverse_allowed_transition:
for tr in incomingstate.reverse_destination_state:
for previousstate in tr.reverse_allowed_transition:
yield previousstate
def parent(self):
return self.workflow
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment