Project

General

Profile

Actions

Bug #83392

closed

Flashmessage won't work correctly with $this->redirect in a controllerAction

Added by Dieter Porth over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2017-12-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I got the following problem.
@
if ( ... ) {
...
$this->addFlashMessage(
LocalizationUtility::translate(
'flash.ad.checkCompany.missingData.message',
'project'
) . "\n" . $error,
LocalizationUtility::translate(
'flash.ad.checkCompany.missingData.title',
'project'
),

AbstractMessage::ERROR,
false
);
// the following line will not trigger a flashmessage
// $this->redirect(null, null, null, ['err' => 'ad'], $this->settings['pids']['profileCompany']);
//
$this->redirect('edit', 'Company', null, ['err' => 'ad'], $this->settings['pids']['profileCompany']);
}
@
Actions

Also available in: Atom PDF