Skip to content

Commit

Permalink
Make nc_notification mandatory for `newsletterSubscribeNotification…
Browse files Browse the repository at this point in the history
…Center`
  • Loading branch information
fritzmg authored Sep 27, 2024
1 parent 0e8563b commit b7d6853
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EventListener/Backend/DataContainer/ModuleListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7d6853

Please sign in to comment.