From eddff82a3f364d5643646d401467294eebef8a0c Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 8 Aug 2024 12:45:42 +1200 Subject: [PATCH] FIX Update CMS fields now that they're being scaffolded --- src/Extensions/ShareDraftContentSiteTreeExtension.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Extensions/ShareDraftContentSiteTreeExtension.php b/src/Extensions/ShareDraftContentSiteTreeExtension.php index 0bcb7ff..70b05a1 100644 --- a/src/Extensions/ShareDraftContentSiteTreeExtension.php +++ b/src/Extensions/ShareDraftContentSiteTreeExtension.php @@ -43,6 +43,15 @@ class ShareDraftContentSiteTreeExtension extends DataExtension 'ShareTokens' => ShareToken::class, ); + private static array $scaffold_cmsfields_settings = [ + 'ignoreFields' => [ + 'ShareTokenSalt', + ], + 'ignoreRelations' => [ + 'ShareTokens', + ], + ]; + /** * @var array */