$event->stopPropagation();

Created on 24 March 2023, over 1 year ago

Hello,

I have noticed that the function latestRevision() of the Event Listener "ScheduledTransitionsNewRevision" makes an "$event->stopPropagation();", thus other modules can not react to the transition.

I have modified the code to trigger a new event like this :

$this->eventDispatcher->dispatch($event, ScheduledTransitionsEvents::BEFORE_RUN);

In the runner just after the trigger of ScheduledTransitionsEvents::NEW_REVISION,

Is this the right thing to do in order to be able to react to the transition being executed ?

Thanks in advance.

💬 Support request
Status

Closed: works as designed

Version

2.4

Component

Code

Created by

🇫🇷France yonailo Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @yonailo
  • Status changed to Closed: works as designed over 1 year ago
  • 🇦🇺Australia dpi Perth, Australia

    You should change your event subscriber priority if you need to listen and react to the event before this one.

    You can see listener stopping propagation is set to 1000. So you need to react before this.

Production build 0.71.5 2024