Commit 8ddf6b84 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Christian Kuhn
Browse files

[BUGFIX] Fix undefined array key error in DatabaseRecordList

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/+/72843


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 445f6066
......@@ -2641,7 +2641,7 @@ class DatabaseRecordList
}
$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)
......
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