mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-78533 grade: relax param type of itemname in external structures.
Ensure it conforms to the same format as allowed for course modules.
This commit is contained in:
parent
f12e1b82a0
commit
e4ba5d276d
2
grade/report/user/classes/external/user.php
vendored
2
grade/report/user/classes/external/user.php
vendored
@ -508,7 +508,7 @@ class user extends external_api {
|
||||
new external_single_structure(
|
||||
[
|
||||
'id' => new external_value(PARAM_INT, 'Grade item id'),
|
||||
'itemname' => new external_value(PARAM_TEXT, 'Grade item name'),
|
||||
'itemname' => new external_value(PARAM_CLEANHTML, 'Grade item name'),
|
||||
'itemtype' => new external_value(PARAM_ALPHA, 'Grade item type'),
|
||||
'itemmodule' => new external_value(PARAM_PLUGIN, 'Grade item module'),
|
||||
'iteminstance' => new external_value(PARAM_INT, 'Grade item instance'),
|
||||
|
@ -1,6 +1,10 @@
|
||||
This file describes API changes in /grade/* ;
|
||||
Information provided here is intended especially for developers.
|
||||
|
||||
=== 4.1.6 ===
|
||||
* The grade `itemname` property contained in the return structure of the following external methods is now PARAM_CLEANHTML:
|
||||
- `gradereport_user_get_grade_items`
|
||||
|
||||
=== 4.1 ===
|
||||
* The $importactiveurl parameter in the constructor of the core_grades\output\import_action_bar class has been deprecated and is not used anymore.
|
||||
* The $exportactiveurl parameter in the constructor of the core_grades\output\export_action_bar class has been deprecated and is not used anymore.
|
||||
|
Loading…
x
Reference in New Issue
Block a user