Skip to content

Commit

Permalink
only react on NodeAggregateWasMoved when there is a new parent
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard Schmitt committed Aug 29, 2024
1 parent b70c396 commit ab2c771
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/CatchUpHook/DocumentUriPathProjectionHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ab2c771

Please sign in to comment.