Commit 4c95e01d authored by Jochen Rau's avatar Jochen Rau Committed by Benni Mack
Browse files

[BUGFIX] noTrimWrap = | || won't work inside a menu

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's avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber's avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Benni Mack's avatarBenjamin Mack <benni@typo3.org>
Tested-by: Benni Mack's avatarBenjamin Mack <benni@typo3.org>
parent 20d640fe
......@@ -1170,7 +1170,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;
}
......
Supports Markdown
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