Skip to content

Commit

Permalink
[BUGFIX] forms with disabled gdpr checkbox - PHP Warning: Undefined a…
Browse files Browse the repository at this point in the history
…rray key tx_cspowermailgdpr_accepted
  • Loading branch information
akoenig-clickstorm committed Jan 29, 2024
1 parent bdd2149 commit 8cb5f51
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 8cb5f51

Please sign in to comment.