Commit 32a9b91f authored by Frank Nägler's avatar Frank Nägler Committed by Christian Kuhn
Browse files

[BUGFIX] Remove deprecated call in InlineRecordContainer

This patch removes the usage of the deprecated FlashMessage->render
method and add a custom markup instead.

Resolves: #73703
Releases: master, 7.6
Change-Id: I1c84aa0c353a26fdc62d7d16fca5cdfc22326156
Reviewed-on: https://review.typo3.org/46916

Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Tested-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: default avatarDaniel Goerz <ervaude@gmail.com>
Tested-by: default avatarDaniel Goerz <ervaude@gmail.com>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 1d4df95a
......@@ -247,13 +247,22 @@ class InlineRecordContainer extends AbstractContainer
if (!empty($parentConfig['appearance']['overwriteCombinationWarningMessage'])) {
$combinationWarningMessage = $parentConfig['appearance']['overwriteCombinationWarningMessage'];
}
$flashMessage = GeneralUtility::makeInstance(
FlashMessage::class,
$this->getLanguageService()->sL($combinationWarningMessage),
'',
FlashMessage::WARNING
);
$resultArray['html'] = $flashMessage->render();
$message = $this->getLanguageService()->sL($combinationWarningMessage);
$markup = [];
$markup[] = '<div class="alert alert-warning">';
$markup[] = ' <div class="media">';
$markup[] = ' <div class="media-left">';
$markup[] = ' <span class="fa-stack fa-lg">';
$markup[] = ' <i class="fa fa-circle fa-stack-2x"></i>';
$markup[] = ' <i class="fa fa-exclamation fa-stack-1x"></i>';
$markup[] = ' </span>';
$markup[] = ' </div>';
$markup[] = ' <div class="media-body">';
$markup[] = ' <div class="alert-message">' . htmlspecialchars($message) . '</div>';
$markup[] = ' </div>';
$markup[] = ' </div>';
$markup[] = '</div>';
$resultArray['html'] = implode(LF, $markup);
}
$childArray = $this->renderChild($childData);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment