Skip to content

Commit

Permalink
Merge pull request #80 from neos/moreSelectiveMoveNodeHandling
Browse files Browse the repository at this point in the history
only react on NodeAggregateWasMoved when there is a new parent
  • Loading branch information
nezaniel authored Aug 29, 2024
2 parents b70c396 + ab2c771 commit cf8230b
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 cf8230b

Please sign in to comment.