Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit 5a80bc5

Browse files
authored
Update ExtraPageFieldsExtension.php
1 parent c13e3c6 commit 5a80bc5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

code/ExtraPageFieldsExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ public function updateCMSFields(FieldList $fields)
2828
//Add secondary heading - H2
2929
$fields->insertAfter(TextField::create('SubTitle', 'Secondary Heading'), 'Title');
3030

31-
if (
32-
!Page::config()->get('has_after_update_cms_fields_extension_point') &&
33-
!in_array('HasOnAfterUpdateCMSFieldsExtensionPoint', class_uses($this->owner))
34-
) {
31+
if (!in_array('HasOnAfterUpdateCMSFieldsExtensionPoint', class_uses($this->owner))) {
3532
$this->afterUpdateCMSFields($fields);
3633
}
3734
}

0 commit comments

Comments
 (0)