Actions
Bug #79981
closedBug in TCA displayCond - colons in the operand are ignored
Start date:
2017-02-23
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint
Description
'displayCond' => 'FIELD:myfield:=:text:with:colons',
The operand is set to 'text' and not to 'text:with:colons', so the displayCond didn't work correct.
Bug in \TYPO3\CMS\Backend\Form\FormDataProvider\EvaluateDisplayConditions::parseSingleConditionString
Reason:
the $conditionArray uses trimExplode with no limit.
$conditionArray = GeneralUtility::trimExplode(':', $conditionString);
later in the code the operand is fetched from $conditionArray[3]
.
$operand = $conditionArray[3];
Actions