From ab2c7711dca9aaf308848bbb7e695fed18c7ffa8 Mon Sep 17 00:00:00 2001 From: Bernhard Schmitt Date: Thu, 29 Aug 2024 09:32:54 +0200 Subject: [PATCH] only react on NodeAggregateWasMoved when there is a new parent --- Classes/CatchUpHook/DocumentUriPathProjectionHook.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Classes/CatchUpHook/DocumentUriPathProjectionHook.php b/Classes/CatchUpHook/DocumentUriPathProjectionHook.php index 2b6c44b..dd97482 100644 --- a/Classes/CatchUpHook/DocumentUriPathProjectionHook.php +++ b/Classes/CatchUpHook/DocumentUriPathProjectionHook.php @@ -195,6 +195,10 @@ private function handleNodeWasMoved(NodeAggregateWasMoved $event, \Closure $clos return; } + if (!$event->newParentNodeAggregateId) { + return; + } + foreach ($event->succeedingSiblingsForCoverage as $interdimensionalSibling) { $node = $this->findNodeByIdAndDimensionSpacePointHash($event->nodeAggregateId, $interdimensionalSibling->dimensionSpacePoint->hash); if ($node === null) {