Skip to content
Snippets Groups Projects
Commit a2d9e7dc authored by Georg Ringer's avatar Georg Ringer Committed by Christian Kuhn
Browse files

[BUGFIX] Add proper check in TcaInputPlaceholders

The configuration `foreign_table` of the type `select` is optional.
Add a check to avoid PHP warnings.

Resolves: #103825
Releases: main, 12.4, 11.5
Change-Id: I65925bae287a0ed340c67923ac4e4a2c72ce9d28
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84391


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent d28f7b04
Branches
Tags
No related merge requests found
......@@ -120,7 +120,7 @@ class TcaInputPlaceholders implements FormDataProviderInterface
// The FormDataProviders already resolved the select items to an array of uids,
// filter out empty values that occur when no related record has been selected.
$possibleUids = array_filter($value);
$foreignTableName = $fieldConfig['foreign_table'];
$foreignTableName = $fieldConfig['foreign_table'] ?? '';
break;
case 'group':
$possibleUids = $this->getRelatedGroupFieldUids($fieldConfig, $value);
......
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