Skip to content

Commit

Permalink
Fix: Rebase onto 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
pKallert committed Feb 7, 2025
1 parent b83a3c0 commit 1f3f32d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Classes/Domain/Model/Changes/AbstractCopy.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ protected function finish(NodeInterface $node): void
$updateNodeInfo->setNode($node);
$updateNodeInfo->recursive();
$this->feedbackCollection->add($updateNodeInfo);
$this->addNodeCreatedFeedback($this->getSubject());
parent::finish($node);
}

Expand Down
7 changes: 6 additions & 1 deletion Classes/Domain/Model/Changes/AbstractMove.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Neos\Neos\Ui\Domain\Model\Feedback\Operations\RemoveNode;
use Neos\Flow\Annotations as Flow;
use Neos\Neos\Ui\Domain\Model\Feedback\Operations\UpdateNodePath;
use Neos\Neos\Ui\Domain\Model\Feedback\Operations\Redirect;

abstract class AbstractMove extends AbstractStructuralChange
{
Expand All @@ -40,7 +41,11 @@ protected function finish(NodeInterface $node)
$updateNodePath->setNewContextPath($this->getSubject()->getContextPath());
$this->feedbackCollection->add($updateNodePath);
}

if ($this->getSubject()->getNodeType()->isOfType('Neos.Neos:Document')) {
$redirect = new Redirect();
$redirect->setNode($this->getSubject());
$this->feedbackCollection->add($redirect);
}
// $this->getSubject() is the moved node at the NEW location!
parent::finish($this->getSubject());
}
Expand Down

0 comments on commit 1f3f32d

Please sign in to comment.