diff --git a/Classes/Domain/Finisher/EmailTemplateFinisher.php b/Classes/Domain/Finisher/EmailTemplateFinisher.php index 78932b9..d08305d 100644 --- a/Classes/Domain/Finisher/EmailTemplateFinisher.php +++ b/Classes/Domain/Finisher/EmailTemplateFinisher.php @@ -28,13 +28,13 @@ public function __construct( ) { } - protected function executeInternal(): void + protected function executeInternal() { $emailTemplateUid = $this->options['emailTemplateUid'] ?? null; // For v10 compatibility reasons we check for [Empty] value if (empty($emailTemplateUid) || $emailTemplateUid === '[Empty]') { parent::executeInternal(); - return; + return null; } // Fallback to default in case doktype changed and the selected page @@ -42,7 +42,7 @@ protected function executeInternal(): void $page = GeneralUtility::makeInstance(PageRepository::class)->getPage($emailTemplateUid); if ((int)$page['doktype'] !== $this->configuration->getDokType()) { parent::executeInternal(); - return; + return null; } $languageBackup = null; @@ -154,6 +154,8 @@ protected function executeInternal(): void } else { $mail->send(); } + + return null; } protected function getStandaloneView(string $title, FormRuntime $formRuntime, string $format = 'txt'): StandaloneView