Skip to content

Commit

Permalink
[BUGFIX] Add missing (empty) parameter in addFlashMessage()
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhofmann committed Dec 5, 2024
1 parent 55f1e66 commit d11e918
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Classes/Controller/FormController.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ public function createAction(Mail $mail, string $hash = ''): ResponseInterface
if ($requestToken === null) {
$this->addFlashMessage(
LocalizationUtility::translate('error_requesttoken_missing'),
'',
\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::ERROR
);
$this->messageClass = 'error';
Expand All @@ -282,6 +283,7 @@ public function createAction(Mail $mail, string $hash = ''): ResponseInterface
if ($requestToken === false) {
$this->addFlashMessage(
LocalizationUtility::translate('error_requesttoken_not_verified'),
'',
\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::ERROR
);
$this->messageClass = 'error';
Expand All @@ -290,6 +292,7 @@ public function createAction(Mail $mail, string $hash = ''): ResponseInterface
if ($requestToken->scope !== 'powermail/create') {
$this->addFlashMessage(
LocalizationUtility::translate('error_requesttoken_wrong_scope'),
'',
\TYPO3\CMS\Core\Type\ContextualFeedbackSeverity::ERROR
);
$this->messageClass = 'error';
Expand Down

0 comments on commit d11e918

Please sign in to comment.