mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 15:05:54 +00:00
BUGFIX: Fixed issue where Widget::CMSEditor() can't see the enabled checkbox
This commit is contained in:
parent
871ba84d97
commit
54599b98d1
@ -159,10 +159,18 @@ class Widget extends DataObject {
|
|||||||
* @return FieldList
|
* @return FieldList
|
||||||
*/
|
*/
|
||||||
public function getCMSFields() {
|
public function getCMSFields() {
|
||||||
$fields = parent::getCMSFields();
|
$fields = $this->scaffoldFormFields(array(
|
||||||
|
// Don't allow has_many/many_many relationship editing before the record is first saved
|
||||||
|
'includeRelations' => ($this->ID > 0),
|
||||||
|
'tabbed' => false,
|
||||||
|
'ajaxSafe' => true
|
||||||
|
));
|
||||||
|
|
||||||
$fields->removeByName('ParentID');
|
$fields->removeByName('ParentID');
|
||||||
$fields->removeByName('Sort');
|
$fields->removeByName('Sort');
|
||||||
|
|
||||||
|
$this->extend('updateCMSFields', $tabbedFields);
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user