mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-30 10:29:42 +00:00
Change if-logic in CalendarEntityListener.php
CalendarRemovedMessage should be triggered upon 'editing' the Calendar entity setting it's status to canceled. Otherwise trigger CalendarMessage instead
This commit is contained in:
@@ -77,9 +77,7 @@ class CalendarEntityListener
|
|||||||
$this->getAuthenticatedUser()
|
$this->getAuthenticatedUser()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
} elseif (!$calendar->preventEnqueueChanges) {
|
||||||
|
|
||||||
if (!$calendar->preventEnqueueChanges) {
|
|
||||||
$this->messageBus->dispatch(
|
$this->messageBus->dispatch(
|
||||||
new CalendarMessage(
|
new CalendarMessage(
|
||||||
$calendar,
|
$calendar,
|
||||||
|
Reference in New Issue
Block a user