From 8f71e16e56d9ca79a96f9e25a3b9bc4b0df60d76 Mon Sep 17 00:00:00 2001 From: Alexander Kellner Date: Wed, 3 Jul 2024 09:44:06 +0200 Subject: [PATCH] [BUGFIX] Prevent "undefined variable $isSavingOfMailAllowed in ... FormController" One of our clients is using TYPO3 11 with powermail 10.8.1 (latest for this TYPO3 version so far). A form is set with activated double opt in. When the user clicks on the link in the mail to confirm the message, an exception is thrown. Related: https://projekte.in2code.de/issues/64878 --- Classes/Controller/FormController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/Controller/FormController.php b/Classes/Controller/FormController.php index 49cc8ded4..27e03f4b1 100644 --- a/Classes/Controller/FormController.php +++ b/Classes/Controller/FormController.php @@ -194,6 +194,7 @@ public function initializeCreateAction(): void */ public function createAction(Mail $mail, string $hash = ''): ResponseInterface { + $isSavingOfMailAllowed = false; $this->signalDispatch(__CLASS__, __FUNCTION__ . 'BeforeRenderView', [$mail, $hash, $this]); /** @noinspection PhpUnhandledExceptionInspection */ $this->dataProcessorRunner->callDataProcessors(