Remove ParentID field from the fields

This should not be manually set by default.
This commit is contained in:
Will Rossiter 2014-07-02 09:14:12 +12:00
parent 6b67ee0ff8
commit 2baa195282
1 changed files with 10 additions and 0 deletions

View File

@ -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
*/