Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/9.0' into workspaceAwareCommands
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Nov 26, 2023
2 parents 194b8ed + 8ac066b commit 94c8a07
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ public function indexAction(string $node = null)
);
$rootNode = $rootNodeAggregate->getNodeByCoveredDimensionSpacePoint($defaultDimensionSpacePoint);

$siteNode = $subgraph->findChildNodeConnectedThroughEdgeName(
$rootNode->nodeAggregateId,
$siteDetectionResult->siteNodeName->toNodeName()
$siteNode = $subgraph->findNodeByPath(
$siteDetectionResult->siteNodeName->toNodeName(),
$rootNode->nodeAggregateId
);

if (!$nodeAddress) {
Expand Down
6 changes: 3 additions & 3 deletions Classes/Domain/Model/Changes/CopyAfter.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ public function apply(): void
$contentRepository->handle($command)->block();

$newlyCreatedNode = $this->contentRepositoryRegistry->subgraphForNode($parentNodeOfPreviousSibling)
->findChildNodeConnectedThroughEdgeName(
$parentNodeOfPreviousSibling->nodeAggregateId,
$targetNodeName
->findNodeByPath(
$targetNodeName,
$parentNodeOfPreviousSibling->nodeAggregateId
);
$this->finish($newlyCreatedNode);
// NOTE: we need to run "finish" before "addNodeCreatedFeedback"
Expand Down
6 changes: 3 additions & 3 deletions Classes/Domain/Model/Changes/CopyBefore.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public function apply(): void
$contentRepository->handle($command)->block();

$newlyCreatedNode = $this->contentRepositoryRegistry->subgraphForNode($parentNodeOfSucceedingSibling)
->findChildNodeConnectedThroughEdgeName(
$parentNodeOfSucceedingSibling->nodeAggregateId,
$targetNodeName
->findNodeByPath(
$targetNodeName,
$parentNodeOfSucceedingSibling->nodeAggregateId
);
$this->finish($newlyCreatedNode);
// NOTE: we need to run "finish" before "addNodeCreatedFeedback"
Expand Down
6 changes: 3 additions & 3 deletions Classes/Domain/Model/Changes/CopyInto.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ public function apply(): void
$contentRepository->handle($command)->block();

$newlyCreatedNode = $this->contentRepositoryRegistry->subgraphForNode($parentNode)
->findChildNodeConnectedThroughEdgeName(
$parentNode->nodeAggregateId,
$targetNodeName
->findNodeByPath(
$targetNodeName,
$parentNode->nodeAggregateId
);
$this->finish($newlyCreatedNode);
// NOTE: we need to run "finish" before "addNodeCreatedFeedback"
Expand Down

0 comments on commit 94c8a07

Please sign in to comment.