MDL-64298 gradereport_user: Fix WS returned parameter description
authorJuan Leyva <juanleyvadelgado@gmail.com>
Wed, 23 Oct 2019 15:15:59 +0000 (17:15 +0200)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Wed, 23 Oct 2019 15:56:09 +0000 (17:56 +0200)
feedbackformat must be optional always

grade/report/user/externallib.php

index 8bbd6e5..da5f866 100644 (file)
@@ -514,7 +514,7 @@ class gradereport_user_external extends external_api {
                                         'numusers' => new external_value(PARAM_INT, 'Num users in course', VALUE_OPTIONAL),
                                         'averageformatted' => new external_value(PARAM_NOTAGS, 'Grade average', VALUE_OPTIONAL),
                                         'feedback' => new external_value(PARAM_RAW, 'Grade feedback', VALUE_OPTIONAL),
-                                        'feedbackformat' => new external_format_value('feedback'),
+                                        'feedbackformat' => new external_format_value('feedback', VALUE_OPTIONAL),
                                     ), 'Grade items'
                                 )
                             )