From ead5ddbfbec2492bee71ed7712d227258efb7dca Mon Sep 17 00:00:00 2001 From: Nikita Hovratov Date: Sun, 4 Feb 2024 19:22:43 +0100 Subject: [PATCH] [BUGFIX] Avoid undefined array key warning "foreign_match_fields" Fixes: #616 --- Classes/ItemsProcFuncs/CTypeList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ItemsProcFuncs/CTypeList.php b/Classes/ItemsProcFuncs/CTypeList.php index e239157a..4312a168 100644 --- a/Classes/ItemsProcFuncs/CTypeList.php +++ b/Classes/ItemsProcFuncs/CTypeList.php @@ -44,7 +44,7 @@ public function itemsProcFunc(array &$params, $parentObj): void if ($fieldKey === '' && isset($GLOBALS['TYPO3_REQUEST']->getParsedBody()['ajax']['context'])) { $ajaxContext = json_decode($GLOBALS['TYPO3_REQUEST']->getParsedBody()['ajax']['context'], true, 512, JSON_THROW_ON_ERROR); $config = json_decode($ajaxContext['config'], true, 512, JSON_THROW_ON_ERROR); - $fieldKey = $config['foreign_match_fields']['tx_mask_content_role']; + $fieldKey = $config['foreign_match_fields']['tx_mask_content_role'] ?? ''; } $table = $params['row']['tx_mask_content_tablenames'] ?? '';