Remove parent comment field

This commit is contained in:
scott1702 2015-04-21 16:05:20 +12:00
parent 468df23801
commit a5bed7f27f

View File

@ -561,15 +561,6 @@ class Comment extends DataObject {
);
}
// Show parent comment details
if(($parent = $this->ParentComment()) && $parent->exists()) {
$fields->insertAfter(
TextField::create('ParentCommentDescription', $this->fieldLabel('ParentComment'), $parent->Title)
->performReadonlyTransformation(),
'Created'
);
}
$this->extend('updateCMSFields', $fields);
return $fields;
}