Skip to content

Commit

Permalink
[BUGFIX] Prevent "undefined variable $isSavingOfMailAllowed in ... Fo…
Browse files Browse the repository at this point in the history
…rmController"

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
  • Loading branch information
einpraegsam committed Jul 3, 2024
1 parent 09a73fc commit 8f71e16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Controller/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8f71e16

Please sign in to comment.