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
|
* @return \FieldList
|
||||||
*/
|
*/
|
||||||
public function getCMSFields() {
|
public function getCMSFields() {
|
||||||
$fields = FieldList::create();
|
$fields = parent::getCMSFields();
|
||||||
$fields->push(TextareaField::create('Note'));
|
$fields->removeByName('ReviewerID');
|
||||||
|
$fields->removeByName('SiteTreeID');
|
||||||
$fields->push(HiddenField::create('ReviewerID', 'ReviewerID', Member::currentUserID()));
|
$fields->push(HiddenField::create('ReviewerID', 'ReviewerID', Member::currentUserID()));
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user