MINOR: Removed ability to select parent and replaced with hidden-field

This commit is contained in:
Russell Michell 2013-01-16 09:51:34 +13:00
parent c89a8d02ce
commit c38ca52ab7

View File

@ -321,8 +321,8 @@ class Comment extends DataObject {
*/
public function getCMSFields() {
$fields = parent::getCMSFields();
$parentClass = $this->getParentClassName();
$parentIDField = new DropDownField('ParentID', 'Parent', $parentClass::get()->map());
$parent = $this->getParent()->ID;
$parentIDField = new HiddenField('ParentID', 'Parent', $parent);
$authorIDField = new HiddenField('AuthorID');
$baseClassField = new HiddenField('BaseClass');
$fields->replaceField('ParentID', $parentIDField);