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 FieldList
|
||||
*/
|
||||
public function getCMSFields() {
|
||||
$fields = parent::getCMSFields();
|
||||
$fields->removeByName('ParentID');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return FieldList
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue