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; + } }