From dad3555989c87c58bfb6fdb5a0a33f3358041aec Mon Sep 17 00:00:00 2001 From: Thorsten Siegmund Bartel Date: Fri, 29 Apr 2022 13:18:08 +0200 Subject: [PATCH] MDL-74606 mod_assign: Support multilanguage strings in group names. --- mod/assign/externallib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/assign/externallib.php b/mod/assign/externallib.php index 3eb92287437..fa2b761c36a 100644 --- a/mod/assign/externallib.php +++ b/mod/assign/externallib.php @@ -2787,7 +2787,7 @@ class mod_assign_external extends \mod_assign\external\external_api { 'submissionstatus' => new external_value(PARAM_ALPHA, 'The submission status (new, draft, reopened or submitted). Empty when not submitted.', VALUE_OPTIONAL), 'groupid' => new external_value(PARAM_INT, 'for group assignments this is the group id', VALUE_OPTIONAL), - 'groupname' => new external_value(PARAM_NOTAGS, 'for group assignments this is the group name', VALUE_OPTIONAL), + 'groupname' => new external_value(PARAM_TEXT, 'for group assignments this is the group name', VALUE_OPTIONAL), ]; // Merge keys. @@ -2907,7 +2907,7 @@ class mod_assign_external extends \mod_assign\external\external_api { 'cutoffdate' => new external_value(PARAM_INT, 'cutoffdate for the user'), 'duedatestr' => new external_value(PARAM_TEXT, 'duedate for the user'), 'groupid' => new external_value(PARAM_INT, 'for group assignments this is the group id', VALUE_OPTIONAL), - 'groupname' => new external_value(PARAM_NOTAGS, 'for group assignments this is the group name', VALUE_OPTIONAL), + 'groupname' => new external_value(PARAM_TEXT, 'for group assignments this is the group name', VALUE_OPTIONAL), 'submissionstatus' => new external_value(PARAM_ALPHA, 'The submission status (new, draft, reopened or submitted). Empty when not submitted.', VALUE_OPTIONAL), 'user' => $userdescription,