From ad3dc487ecc54188e07ca266c92e584d47495adf Mon Sep 17 00:00:00 2001 From: Daniel Lienert Date: Thu, 17 Dec 2020 08:49:23 +0100 Subject: [PATCH] BUGFIX: Filter out internal nodes when calculating changed nodes --- Classes/Domain/ChangedNodesCalculator.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Classes/Domain/ChangedNodesCalculator.php b/Classes/Domain/ChangedNodesCalculator.php index 45579b5..0e48f48 100644 --- a/Classes/Domain/ChangedNodesCalculator.php +++ b/Classes/Domain/ChangedNodesCalculator.php @@ -197,6 +197,14 @@ private function findChangedNodeDataForDocument(NodeInterface $documentNode): ar $this->userService->getPersonalWorkspace() ); + // Filter out internal nodes + $nodes = array_filter($nodes, static function (NodeData $nodeData) { + return !$nodeData->isInternal(); + }); + + if (empty($nodes)) { + return []; + } $this->changedNodeDataForDocument[(string)$documentNode] = $nodes;