From 9a7e85efd9bee7e7099ba7983b8e54f5dad2941d Mon Sep 17 00:00:00 2001 From: hieuvu Date: Mon, 2 Oct 2023 09:39:11 +0700 Subject: [PATCH] StudentQuiz: Fix wrong param declaration --- classes/local/external/get_comments_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/local/external/get_comments_api.php b/classes/local/external/get_comments_api.php index b25fb321..cf9072ee 100644 --- a/classes/local/external/get_comments_api.php +++ b/classes/local/external/get_comments_api.php @@ -57,7 +57,7 @@ public static function get_comments_parameters() { 'cmid' => new external_value(PARAM_INT, 'Cm ID'), 'numbertoshow' => new external_value(PARAM_INT, 'Number of comments to show, 0 will return all comments/replies', VALUE_DEFAULT, container::NUMBER_COMMENT_TO_SHOW_BY_DEFAULT), - 'sort' => new external_value(PARAM_TEXT, 'Sort type', false), + 'sort' => new external_value(PARAM_TEXT, 'Sort type'), 'type' => new external_value(PARAM_INT, 'Comment type', VALUE_DEFAULT, utils::COMMENT_TYPE_PUBLIC) ]); }