Project

General

Profile

Actions

Bug #79981

closed

Bug in TCA displayCond - colons in the operand are ignored

Added by Frank Rakow over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
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];


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #79822: UserFunc in TCA displayCondClosed2017-02-15

Actions
Actions

Also available in: Atom PDF