From 85c8b734a979cea3fe12bcae73a9ee80322a240f Mon Sep 17 00:00:00 2001 From: David Blatter <david.blatter@laupercomputing.ch> Date: Thu, 15 Dec 2022 22:30:03 +0100 Subject: [PATCH] [BUGFIX] Make SITE: placeholder work in foreign_selector A tca column with a SITE: placeholder inside the foreign_table_where config whould not work when used as a foreign_selector in an irre. To make it work, this change adds the resolved site from the parent context. Resolves: #99382 Releases: main, 11.5 Change-Id: I39658576da3159c071a46505683b8641eb3bada4 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77516 Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> --- typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php | 1 + 1 file changed, 1 insertion(+) diff --git a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php index 2b976ee36d19..df5593723c41 100644 --- a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php +++ b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaInline.php @@ -291,6 +291,7 @@ class TcaInline extends AbstractDatabaseRecordProvider implements FormDataProvid ], ], 'inlineExpandCollapseStateArray' => $result['inlineExpandCollapseStateArray'], + 'site' => $result['site'], ]; $formDataGroup = GeneralUtility::makeInstance(OnTheFly::class); $formDataGroup->setProviderList([TcaSelectItems::class]); -- GitLab