MDL-73000 webservice: Fix external_warnings message type

This commit is contained in:
Juan Leyva 2021-11-23 16:10:20 +01:00
parent 16a5169a43
commit dba18ce3b6
2 changed files with 2 additions and 1 deletions

View File

@ -857,7 +857,7 @@ class external_warnings extends external_multiple_structure {
'item' => new external_value(PARAM_TEXT, $itemdesc, VALUE_OPTIONAL),
'itemid' => new external_value(PARAM_INT, $itemiddesc, VALUE_OPTIONAL),
'warningcode' => new external_value(PARAM_ALPHANUM, $warningcodedesc),
'message' => new external_value(PARAM_TEXT,
'message' => new external_value(PARAM_RAW,
'untranslated english message to explain the warning')
), 'warning'),
'list of warnings', VALUE_OPTIONAL);

View File

@ -128,6 +128,7 @@ completely removed from Moodle core too.
-get_safe_orderby() - where a single sort parameter is required.
-get_safe_orderby_multiple() - where multiple sort parameters are required.
* Added the cleanstr mustache template helper to clean strings after loading them from language packs.
* The type for the "message" field in the external_warnings() structure has been changed from PARAM_TEXT to PARAM_RAW
=== 3.11.4 ===
* A new option dontforcesvgdownload has been added to the $options parameter of the send_file() function.