Skip to content

Fix multi-decorated transition #151

Description

@pfouque

If a transition method is decorated multiple times with a different permission or condition per source state, the wrong one could be checked.

Root cause: _get_fsm_transition_by_name returns an arbitrary Transition entry (transitions[0]) rather than the one matching the object's current state.

NB: Thanks @aripollak-groma for the report

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions