Skip to content

Commit

Permalink
BUGFIX: Filter out internal nodes when calculating changed nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed Dec 17, 2020
1 parent ed437b1 commit ad3dc48
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Classes/Domain/ChangedNodesCalculator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit ad3dc48

Please sign in to comment.