[BUGFIX] Serialize expression in switch viewhelper 04/30804/4
authorBjörn Fromme <mail@bjo3rn.com>
Wed, 18 Jun 2014 08:25:46 +0000 (10:25 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 14 Dec 2014 17:06:03 +0000 (18:06 +0100)
commit197a810b6a7db41717f30c0d8101c3e0181690fc
tree00cae4550046b2b8e96c2e961c8fc021477961ac
parent6df7104be98a7c9ca00b29a81582f594402cf3f6
[BUGFIX] Serialize expression in switch viewhelper

The f:switch ViewHelper breaks with Fluid error "No value found for key
"TYPO3\CMS\Fluid\ViewHelpers\SwitchViewHelper->switchExpression", thus
the key cannot be removed." for a NULL expression. This patch serializes
the expression before storing it in the ViewHelper variable container.

Resolves: #59255
Releases: master, 6.2
Change-Id: I6eb646bbe4c9975edff0128479e8c057395df5a1
Reviewed-on: http://review.typo3.org/30804
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Stephan Großberndt <stephan@grossberndt.de>
Tested-by: Stephan Großberndt <stephan@grossberndt.de>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/fluid/Classes/ViewHelpers/CaseViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/SwitchViewHelper.php