From 6f9c1ee8e5a6c4bf81597f12cf140836d956ca20 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 8 Aug 2024 12:46:55 +1200 Subject: [PATCH] FIX Update CMS fields now that they're being scaffolded --- src/Extensions/SiteTreeContentReview.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/Extensions/SiteTreeContentReview.php b/src/Extensions/SiteTreeContentReview.php index e05947c..7252a70 100644 --- a/src/Extensions/SiteTreeContentReview.php +++ b/src/Extensions/SiteTreeContentReview.php @@ -93,6 +93,21 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider "ContentReviewUsers" => Member::class, ]; + private static array $scaffold_cmsfields_settings = [ + 'ignoreFields' => [ + 'ContentReviewType', + 'ReviewPeriodDays', + 'NextReviewDate', + 'LastEditedByName', + 'OwnerNames', + ], + 'ignoreRelations' => [ + 'ReviewLogs', + 'ContentReviewGroups', + 'ContentReviewUsers', + ], + ]; + /** * @var array */