From ea66b0bc7eda3cd22904bc9cc3b9494390b7de1e Mon Sep 17 00:00:00 2001 From: Torleif West Date: Tue, 14 Aug 2018 10:48:56 +1200 Subject: [PATCH] Fix - hide the reviewer ID from the CMS user --- code/models/ContentReviewLog.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/models/ContentReviewLog.php b/code/models/ContentReviewLog.php index 4c890c8..55fa444 100644 --- a/code/models/ContentReviewLog.php +++ b/code/models/ContentReviewLog.php @@ -40,4 +40,16 @@ class ContentReviewLog extends DataObject { return (bool) Member::currentUser(); } + + + /** + * allow the user to edit the fields + * @return \FieldList + */ + public function getCMSFields() { + $fields = FieldList::create(); + $fields->push(TextareaField::create('Note')); + $fields->push(HiddenField::create('ReviewerID', 'ReviewerID', Member::currentUserID())); + return $fields; + } }