Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoreShop\Bundle\CoreBundle\EventListener\NotificationRules\OrderWorkflowListener same state in both from and to #2229

Open
dkarlovi opened this issue Mar 6, 2023 · 1 comment

Comments

@dkarlovi
Copy link
Contributor

dkarlovi commented Mar 6, 2023

Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no

When the listener is handling Symfony\Component\Workflow\Event\CompletedEvent, the marking is already in the "to" state, but currently it's assuming the transition is still to take place:

'fromState' => $event->getMarking()->getPlaces(),
'toState' => $event->getTransition()->getTos(),

At this time, the marking already changed and the "to" should be read from it, not "from".

@dkarlovi
Copy link
Contributor Author

dkarlovi commented Mar 6, 2023

@dpfaffenbauer this is a bug. 😄

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

No branches or pull requests

2 participants