Actions
Bug #96454
closedWrong checks for TCA search options in DatabaseRecordList
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2022-01-04
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The documentation states "pidonly" and "case" are boolean values.
https://docs.typo3.org/m/typo3/reference-tca/11.5/en-us/ColumnsConfig/CommonProperties/Search.html
But instead of checking the keys, in_array() is used.
if (in_array('case', $searchConfig, true)) {
// Replace case insensitive default constraint
$searchConstraint = $expressionBuilder->andX($expressionBuilder->like($fieldName, $like));
}
if (in_array('pidonly', $searchConfig, true) && $currentPid > 0) {
$searchConstraint->add($expressionBuilder->eq($tablePidField, (int)$currentPid));
}
This has been fixed some time ago for the other if-branch some lines above, but not for this one.
Actions