Skip to content

Commit

Permalink
[BUGFIX] Avoid undefined array key warning "foreign_match_fields"
Browse files Browse the repository at this point in the history
Fixes: #616
(cherry picked from commit ead5ddb)
  • Loading branch information
nhovratov committed Feb 4, 2024
1 parent d51eb59 commit 041a496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ItemsProcFuncs/CTypeList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ?? '';
Expand Down

0 comments on commit 041a496

Please sign in to comment.