diff --git a/src/EventListener/DataContainer/CalendarEvents/ConfigOnLoadCallbackListener.php b/src/EventListener/DataContainer/CalendarEvents/ConfigOnLoadCallbackListener.php index cfcaafa..fe9053f 100644 --- a/src/EventListener/DataContainer/CalendarEvents/ConfigOnLoadCallbackListener.php +++ b/src/EventListener/DataContainer/CalendarEvents/ConfigOnLoadCallbackListener.php @@ -41,7 +41,7 @@ public function __invoke(DataContainer $dc): void } $mainEvent = $this->eventRegistration->getMainEvent($event); - dump($GLOBALS['TL_DCA']['tl_calendar_events']['fields']['languageMain']); + if ((int) $mainEvent->id === (int) $event->id) { return; }