Commit 8074202d authored by Maik Schneider's avatar Maik Schneider Committed by Richard Haeser
Browse files

[BUGFIX] Respect default values in TcaGroup

RelationHandler cannot handle vanilla uids, pass 0 instead to correctly parse defVals for MM-relations in TCA type=group

Resolves: #93289
Releases: master, 10.4, 9.5
Change-Id: I5258bbc5ef164fc9ed2d14ed1062b54e1f9eec92
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68871

Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Richard Haeser's avatarRichard Haeser <richard@richardhaeser.com>
Reviewed-by: Richard Haeser's avatarRichard Haeser <richard@richardhaeser.com>
parent 17df6b72
......@@ -130,12 +130,15 @@ class TcaGroup implements FormDataProviderInterface
);
}
// In case of vanilla uid, 0 is used to query relations by splitting $databaseRowFieldContent (possible defVals)
$MMuid = MathUtility::canBeInterpretedAsInteger($result['databaseRow']['uid']) ? $result['databaseRow']['uid'] : 0;
$relationHandler = GeneralUtility::makeInstance(RelationHandler::class);
$relationHandler->start(
$databaseRowFieldContent,
$fieldConfig['config']['allowed'],
$fieldConfig['config']['MM'],
$result['databaseRow']['uid'],
$MMuid,
$result['tableName'],
$fieldConfig['config']
);
......
Markdown is supported
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