diff --git a/Classes/EventListener/FormControllerCreateActionBeforeRenderViewEventListener.php b/Classes/EventListener/FormControllerCreateActionBeforeRenderViewEventListener.php index 8de7533..8cbc11e 100644 --- a/Classes/EventListener/FormControllerCreateActionBeforeRenderViewEventListener.php +++ b/Classes/EventListener/FormControllerCreateActionBeforeRenderViewEventListener.php @@ -11,7 +11,7 @@ class FormControllerCreateActionBeforeRenderViewEventListener public function __invoke(FormControllerCreateActionBeforeRenderViewEvent $event) { $mail = $event->getMail(); - if (!$mail->isTxCspowermailgdprAccepted()) { + if (!$mail->getForm()->isTxCspowermailgdprHidden() && !$mail->isTxCspowermailgdprAccepted()) { $mail->setTxCspowermailgdprAccepted(self::checkParam()); } }