Skip to content

Commit

Permalink
Merge pull request #2656 from creative-commoners/pulls/4.8/backport-p…
Browse files Browse the repository at this point in the history
…ull-2651

BUGFIX: Ensure SiteTree is always available in the CMS, along with ancestors
  • Loading branch information
emteknetnz authored May 10, 2021
2 parents a6a3b38 + 67bfdf0 commit 4b32d96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _config/graphql-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ SilverStripe\GraphQL\Manager:
admin:
scaffolding:
types:
# Expose this so that Page can appear anywhere in the hierarchy, rather than assuming
# it is a direct descendant of SiteTree.
SilverStripe\CMS\Model\SiteTree:
fields: [ID]
Page:
fields: [ID, LastEdited, AbsoluteLink]
operations:
Expand Down

0 comments on commit 4b32d96

Please sign in to comment.