mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
Merge pull request #118 from scott1702/parent-comment
Remove Parent Comment row
This commit is contained in:
commit
298ac89ad6
@ -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);
|
$this->extend('updateCMSFields', $fields);
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user