Skip to content

Commit

Permalink
FIX Update CMS fields now that they're being scaffolded (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Aug 15, 2024
1 parent 55e6276 commit 2d292c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/VersionFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ class VersionFeed extends SiteTreeExtension
'PublicHistory' => true
);

private static array $scaffold_cms_fields_settings = [
'ignoreFields' => [
'PublicHistory',
],
];

protected function updateFieldLabels(&$labels)
{
$labels['PublicHistory'] = _t(__CLASS__ . '.LABEL', 'Make history public');
Expand Down

0 comments on commit 2d292c6

Please sign in to comment.