FIX Update CMS fields now that they're being scaffolded (#117)

This commit is contained in:
Guy Sartorelli 2024-08-15 13:15:12 +12:00 committed by GitHub
parent 55e627697d
commit 2d292c6366
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,6 +28,12 @@ class VersionFeed extends SiteTreeExtension
'PublicHistory' => true 'PublicHistory' => true
); );
private static array $scaffold_cms_fields_settings = [
'ignoreFields' => [
'PublicHistory',
],
];
protected function updateFieldLabels(&$labels) protected function updateFieldLabels(&$labels)
{ {
$labels['PublicHistory'] = _t(__CLASS__ . '.LABEL', 'Make history public'); $labels['PublicHistory'] = _t(__CLASS__ . '.LABEL', 'Make history public');