Skip to content

Commit

Permalink
[BUGFIX] Render content element in ConfirmationFinisher
Browse files Browse the repository at this point in the history
Resolves: #87875
Releases: master, 9.5
Change-Id: If093b8c0fa842060dcf64a984b426a8205095fe8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60580
Tested-by: Björn Jacob <bjoern.jacob@tritum.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Ralf Zimmermann <ralf.zimmermann@tritum.de>
  • Loading branch information
Michael Waack authored and waldhacker1 committed Apr 26, 2019
1 parent 691be4d commit 333cd85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
Expand Up @@ -119,7 +119,10 @@ protected function executeInternal()
$this->finisherContext->getFormRuntime()
);

$standaloneView->assign('message', $message);
$standaloneView->assignMultiple([
'message' => $message,
'isPreparedMessage' => !empty($contentElementUid),
]);

return $standaloneView->render();
}
Expand Down
@@ -1,3 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" xmlns:formvh="http://typo3.org/ns/TYPO3/CMS/Form/ViewHelpers" data-namespace-typo3-fluid="true">
{message}
<f:if condition="{isPreparedMessage}">
<f:then>
{message -> f:format.raw()}
</f:then>
<f:else>
{message}
</f:else>
</f:if>
</html>

0 comments on commit 333cd85

Please sign in to comment.