Merge pull request #545 from kinglozzer/removable-tab

FIX: Unable to remove 'Post Options' tab
This commit is contained in:
Dylan Wagstaff 2018-07-10 09:35:13 +12:00 committed by GitHub
commit 991000dddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,15 +321,15 @@ class BlogPost extends Page
// )->setTitle('Post Options'); // )->setTitle('Post Options');
// $options->setName('blog-admin-sidebar'); // $options->setName('blog-admin-sidebar');
// $fields->insertBefore($options, 'Root'); // $fields->insertBefore($options, 'Root');
$fields->fieldByName('Root.PostOptions')
->setTitle(_t(__CLASS__ . '.PostOptions', 'Post Options'));
}); });
$fields = parent::getCMSFields(); $fields = parent::getCMSFields();
$fields->fieldByName('Root')->setTemplate('TabSet_holder'); $fields->fieldByName('Root')->setTemplate('TabSet_holder');
$fields->fieldByName('Root.PostOptions')
->setTitle(_t(__CLASS__ . '.PostOptions', 'Post Options'));
return $fields; return $fields;
} }