Skip to content

Commit

Permalink
FIX Update CMS fields now that they're being scaffolded (silverstripe…
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Aug 19, 2024
1 parent f841219 commit 8363bff
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/Extensions/SiteTreeContentReview.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,21 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
"ContentReviewUsers" => Member::class,
];

private static array $scaffold_cms_fields_settings = [
'ignoreFields' => [
'ContentReviewType',
'ReviewPeriodDays',
'NextReviewDate',
'LastEditedByName',
'OwnerNames',
],
'ignoreRelations' => [
'ReviewLogs',
'ContentReviewGroups',
'ContentReviewUsers',
],
];

/**
* @var array
*/
Expand Down Expand Up @@ -672,7 +687,7 @@ public function providePermissions()
* If the queued jobs module is installed, queue up the first job for 9am tomorrow morning
* (by default).
*/
public function requireDefaultRecords()
protected function onRequireDefaultRecords()
{
if (class_exists(ContentReviewNotificationJob::class)) {
// Ensure there is not already a job queued
Expand Down

0 comments on commit 8363bff

Please sign in to comment.