mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
Mod - refactor fields to get from parent
This commit is contained in:
parent
ea66b0bc7e
commit
814a9372a6
@ -47,8 +47,9 @@ class ContentReviewLog extends DataObject
|
||||
* @return \FieldList
|
||||
*/
|
||||
public function getCMSFields() {
|
||||
$fields = FieldList::create();
|
||||
$fields->push(TextareaField::create('Note'));
|
||||
$fields = parent::getCMSFields();
|
||||
$fields->removeByName('ReviewerID');
|
||||
$fields->removeByName('SiteTreeID');
|
||||
$fields->push(HiddenField::create('ReviewerID', 'ReviewerID', Member::currentUserID()));
|
||||
return $fields;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user