mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-51536 webservices: fix invalid param definitions
This commit is contained in:
parent
6333b018ad
commit
4d9edf1b15
@ -1310,7 +1310,7 @@ class core_group_external extends external_api {
|
||||
return new external_function_parameters(
|
||||
array(
|
||||
'cmid' => new external_value(PARAM_INT, 'course module id'),
|
||||
'userid' => new external_value(PARAM_INT, 'id of user, empty for current user', VALUE_OPTIONAL, 0)
|
||||
'userid' => new external_value(PARAM_INT, 'id of user, empty for current user', VALUE_DEFAULT, 0)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -466,7 +466,7 @@ class core_notes_external extends external_api {
|
||||
return new external_function_parameters(
|
||||
array(
|
||||
'courseid' => new external_value(PARAM_INT, 'course id, 0 for SITE'),
|
||||
'userid' => new external_value(PARAM_INT, 'user id', VALUE_OPTIONAL),
|
||||
'userid' => new external_value(PARAM_INT, 'user id', VALUE_DEFAULT, 0),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user