Skip to content

Commit

Permalink
fix(page-sections): Fix getAllowedPageSections not working on pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Jan 23, 2018
1 parent a68d790 commit 65251d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/PageSectionsExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function updateCMSFields(FieldList $fields) {

if ($this->owner->ID) {
$addNewButton = new GridFieldAddNewMultiClass();
$addNewButton->setClasses($this->getAllowedPageElements());
$addNewButton->setClasses($this->owner->getAllowedPageElements());

$autoCompl = new GridFieldAddExistingAutocompleter('buttons-before-right');
$autoCompl->setResultsFormat('$Title ($ID)');
Expand Down

0 comments on commit 65251d1

Please sign in to comment.