Skip to content

Commit

Permalink
change context->getCurrentSiteNode to getRootNode in FlowQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzEckert committed Mar 20, 2024
1 parent c03cd4d commit eef409c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/Service/NodeTypeFinderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ private function findNodeTypeOccurrencesInDimensions(string $nodeTypeName, array
'invisibleContentShown' => true,
]);

yield from (new FlowQuery([$context->getCurrentSiteNode()]))
->find('/')
yield from (new FlowQuery([$context->getRootNode()]))
->find('[instanceof '.$nodeTypeName.']')
->get();
}
Expand Down

0 comments on commit eef409c

Please sign in to comment.