mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 15:05:54 +00:00
Remove ParentID field from the fields
This should not be manually set by default.
This commit is contained in:
parent
6b67ee0ff8
commit
2baa195282
@ -155,6 +155,16 @@ class Widget extends DataObject {
|
|||||||
return $this->renderWith('WidgetEditor');
|
return $this->renderWith('WidgetEditor');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return FieldList
|
||||||
|
*/
|
||||||
|
public function getCMSFields() {
|
||||||
|
$fields = parent::getCMSFields();
|
||||||
|
$fields->removeByName('ParentID');
|
||||||
|
|
||||||
|
return $fields;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return FieldList
|
* @return FieldList
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user