Merge branch 'MDL-71007-courseidnumer-grade-ws' of https://github.com/brendanheywood...
authorabgreeve <adrian@moodle.com>
Thu, 15 Apr 2021 05:48:39 +0000 (13:48 +0800)
committerabgreeve <adrian@moodle.com>
Thu, 15 Apr 2021 05:48:39 +0000 (13:48 +0800)
1  2 
grade/report/user/externallib.php

@@@ -478,10 -481,10 +481,11 @@@ class gradereport_user_external extend
                      new external_single_structure(
                          array(
                              'courseid' => new external_value(PARAM_INT, 'course id'),
+                             'courseidnumber' => new external_value(PARAM_TEXT, 'course idnumber'),
                              'userid'   => new external_value(PARAM_INT, 'user id'),
                              'userfullname' => new external_value(PARAM_TEXT, 'user fullname'),
 -                            'useridnumber' => new external_value(PARAM_TEXT, 'user idnumber'),
 +                            'useridnumber' => new external_value(
 +                                core_user::get_property_type('idnumber'), 'user idnumber'),
                              'maxdepth'   => new external_value(PARAM_INT, 'table max depth (needed for printing it)'),
                              'gradeitems' => new external_multiple_structure(
                                  new external_single_structure(