[BUGFIX] noTrimWrap = | || won't work inside a menu 75/35375/2
authorJochen Rau <jochen.rau@typoplanet.de>
Tue, 27 Nov 2012 01:07:01 +0000 (02:07 +0100)
committerBenjamin Mack <benni@typo3.org>
Sat, 13 Dec 2014 09:53:01 +0000 (10:53 +0100)
The issue is caused by the implementation of optionSplit. This patch
solves this issue by checking for noTrimWrap.

Change-Id: I1d2a6705b679c2d11433902ca992bc907e520228
Fixes: #20793
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/7255
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Benjamin Mack <benni@typo3.org>
Tested-by: Benjamin Mack <benni@typo3.org>
(cherry picked from commit 4c95e01d44485e67a322bde8dc8d1c703782587a)
Reviewed-on: http://review.typo3.org/35375

typo3/sysext/core/Classes/TypoScript/TemplateService.php

index 41243e3..3180bdf 100644 (file)
@@ -1201,7 +1201,7 @@ class TemplateService {
                                        }
                                } else {
                                        // Splitting of all values on this level of the TypoScript object tree:
-                                       if (!strstr($val, '|*|') && !strstr($val, '||')) {
+                                       if ($cKey === 'noTrimWrap' || (!strstr($val, '|*|') && !strstr($val, '||'))) {
                                                for ($aKey = 0; $aKey < $splitCount; $aKey++) {
                                                        $conf2[$aKey][$cKey] = $val;
                                                }