From b9db9a5e787d9fd07cec4097f13e5c47b30b38f7 Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Fri, 27 Sep 2024 13:58:59 +0100 Subject: [PATCH] Make `nc_notification` mandatory for `newsletterSubscribeNotificationCenter` (#366) --- src/EventListener/Backend/DataContainer/ModuleListener.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/EventListener/Backend/DataContainer/ModuleListener.php b/src/EventListener/Backend/DataContainer/ModuleListener.php index 7a7eb1ee..c8b41386 100644 --- a/src/EventListener/Backend/DataContainer/ModuleListener.php +++ b/src/EventListener/Backend/DataContainer/ModuleListener.php @@ -103,6 +103,7 @@ private function handlePersonalDataModule(): void private function handleNewsletterSubscribeModule(): void { $GLOBALS['TL_DCA']['tl_module']['palettes']['newsletterSubscribeNotificationCenter'] = $GLOBALS['TL_DCA']['tl_module']['palettes']['subscribe']; + $GLOBALS['TL_DCA']['tl_module']['fields']['nc_notification']['eval']['mandatory'] = true; PaletteManipulator::create() ->addField('nc_notification', 'email_legend', PaletteManipulator::POSITION_APPEND)