From dba18ce3b6c4ec041cd5d3723f9556240f3a7ddb Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Tue, 23 Nov 2021 16:10:20 +0100 Subject: [PATCH] MDL-73000 webservice: Fix external_warnings message type --- lib/externallib.php | 2 +- lib/upgrade.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/externallib.php b/lib/externallib.php index 926b5256033..666b49940cf 100644 --- a/lib/externallib.php +++ b/lib/externallib.php @@ -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); diff --git a/lib/upgrade.txt b/lib/upgrade.txt index ac20988a76d..ecbed004ac1 100644 --- a/lib/upgrade.txt +++ b/lib/upgrade.txt @@ -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.