Skip to content

Commit

Permalink
[BUGFIX] Fix undefined array key error in DatabaseRecordList
Browse files Browse the repository at this point in the history
TCA eval config is not required, so it must be
checked for existence.

Resolves: #96453
Releases: main, 11.5
Change-Id: I95425e3febac70ac2e03478b7385edbaf0c9a601
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72829
Tested-by: core-ci <typo3@b13.com>
Tested-by: Stefan Bürk <stefan@buerk.tech>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Stefan Bürk <stefan@buerk.tech>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
nhovratov authored and lolli42 committed Jan 4, 2022
1 parent c61e826 commit 84ee3e8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -2549,7 +2549,7 @@ public function makeSearchString($table, int $currentPid, QueryBuilder $queryBui
}
$fieldConfig = $GLOBALS['TCA'][$table]['columns'][$fieldName]['config'];
$fieldType = $fieldConfig['type'];
$evalRules = $fieldConfig['eval'] ?: '';
$evalRules = ($fieldConfig['eval'] ?? false) ?: '';
if ($fieldType === 'input' && $evalRules && GeneralUtility::inList($evalRules, 'int')) {
if (!isset($fieldConfig['search']['pidonly'])
|| ($fieldConfig['search']['pidonly'] && $currentPid > 0)
Expand Down

0 comments on commit 84ee3e8

Please sign in to comment.