mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
MINOR: Removed ability to select parent and replaced with hidden-field
This commit is contained in:
parent
c89a8d02ce
commit
c38ca52ab7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user