Skip to content

Commit

Permalink
Merge pull request #7 from netlogix/bugfix/runtime-constraints-not-sa…
Browse files Browse the repository at this point in the history
…tisfied-for-find

change context->getCurrentSiteNode to getRootNode in FlowQuery
  • Loading branch information
paxuclus authored Mar 20, 2024
2 parents c03cd4d + eef409c commit bbd565c
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 bbd565c

Please sign in to comment.