mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-12886 one more external group function, other minor fixes
This commit is contained in:
parent
f507217757
commit
246f6da2b8
6 changed files with 122 additions and 33 deletions
|
@ -140,8 +140,8 @@ class webservice_rest_server extends webservice_base_server {
|
|||
$single = '<SINGLE>'."\n";
|
||||
foreach ($desc->keys as $key=>$subdesc) {
|
||||
if (!array_key_exists($key, $returns)) {
|
||||
if ($subdesc->rewquired) {
|
||||
$single .= '<ERROR>Missing required key</ERROR>';
|
||||
if ($subdesc->required) {
|
||||
$single .= '<ERROR>Missing required key "'.$key.'"</ERROR>';
|
||||
continue;
|
||||
} else {
|
||||
//optional field
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue