From c81f3e5a3c619079a2966ff2428f7f216fd3d646 Mon Sep 17 00:00:00 2001 From: Philipp Idler Date: Fri, 15 Mar 2024 15:43:13 +0100 Subject: [PATCH] [BUGFIX] Fix record overlay for 'List of selected items' (2369) --- Classes/Domain/Repository/NewsRepository.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Classes/Domain/Repository/NewsRepository.php b/Classes/Domain/Repository/NewsRepository.php index 15e1bb72b7..48e7d87250 100644 --- a/Classes/Domain/Repository/NewsRepository.php +++ b/Classes/Domain/Repository/NewsRepository.php @@ -251,7 +251,11 @@ protected function createConstraintsFromDemand(QueryInterface $query, DemandInte // Id list $idList = $demand->getIdList(); if ($idList) { - $constraints['idList'] = $query->in('uid', GeneralUtility::intExplode(',', $idList, true)); + $commaSeparatedIdList = GeneralUtility::intExplode(',', $idList, true); + $constraints['idList'] = $query->logicalOr( + $query->in('uid', $commaSeparatedIdList), + $query->in('l10n_parent', $commaSeparatedIdList) + ); } // Clean not used constraints