From 64b226d01daa59196c7f545053c41e941e0aaa03 Mon Sep 17 00:00:00 2001 From: Daniel Hoffmann Date: Mon, 12 Aug 2024 16:02:58 +0200 Subject: [PATCH] [BUGFIX] Fixes finding missing records Resolves: https://projekte.in2code.de/issues/65827 --- .../Core/DemandResolver/Join/JoinDemandResolver.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Classes/Component/Core/DemandResolver/Join/JoinDemandResolver.php b/Classes/Component/Core/DemandResolver/Join/JoinDemandResolver.php index 7660e9df0..1f9f2c45e 100644 --- a/Classes/Component/Core/DemandResolver/Join/JoinDemandResolver.php +++ b/Classes/Component/Core/DemandResolver/Join/JoinDemandResolver.php @@ -78,18 +78,21 @@ protected function findMissingTableRecords(JoinRowCollection $joinRowCollection) $missingIdentifiers['local'] ?? [], $joinRowCollection, $this->localRepository, + 'local' ); $this->findMissingTableRecordsOnSide( $missingIdentifiers['foreign'] ?? [], $joinRowCollection, $this->foreignRepository, + 'foreign' ); } public function findMissingTableRecordsOnSide( array $missingIdentifiers, JoinRowCollection $joinRowCollection, - SingleDatabaseRepository $repository + SingleDatabaseRepository $repository, + string $side ): void { foreach ($missingIdentifiers as $table => $joinTables) { $identifiers = []; @@ -102,7 +105,7 @@ public function findMissingTableRecordsOnSide( foreach ($rows as $uid => $row) { foreach ($identifiers[$uid] as $joinTable => $mmIds) { foreach ($mmIds as $mmId) { - $joinRowCollection->amendRow($joinTable, $table, $mmId, 'foreign', $row); + $joinRowCollection->amendRow($joinTable, $table, $mmId, $side, $row); } } }