Skip to content

Commit

Permalink
MDL-51536 webservices: fix invalid param definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Oct 13, 2015
1 parent 6333b01 commit 4d9edf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion group/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ public static function get_activity_allowed_groups_parameters() {
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)
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion notes/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public static function get_course_notes_parameters() {
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),
)
);
}
Expand Down

0 comments on commit 4d9edf1

Please sign in to comment.