MDL-74606 mod_assign: Support multilanguage strings in group names.

This commit is contained in:
Thorsten Siegmund Bartel
2022-10-05 12:56:16 +02:00
parent 6a6344e268
commit 930a0d2944
+2 -2
View File
@@ -2766,7 +2766,7 @@ class mod_assign_external extends external_api {
'requiregrading' => new external_value(PARAM_BOOL, 'is their submission waiting for grading'),
'grantedextension' => new external_value(PARAM_BOOL, 'have they been granted an extension'),
'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.
@@ -2879,7 +2879,7 @@ class mod_assign_external extends 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),
'user' => $userdescription,
));
}