Permalink
Browse files

MDL-33770 Web service: create_groups should not require enrolmentkey

Conflicts:

	group/externallib.php
  • Loading branch information...
1 parent 63e5dde commit ebf57c7e9451c3de9e45ac3db8df73ec31cacbd3 @mouneyrac mouneyrac committed Jun 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 group/externallib.php
@@ -44,7 +44,7 @@ public static function create_groups_parameters() {
'courseid' => new external_value(PARAM_INT, 'id of course'),
'name' => new external_value(PARAM_TEXT, 'multilang compatible name, course unique'),
'description' => new external_value(PARAM_RAW, 'group description text'),
- 'enrolmentkey' => new external_value(PARAM_RAW, 'group enrol secret phrase'),
+ 'enrolmentkey' => new external_value(PARAM_RAW, 'group enrol secret phrase', VALUE_OPTIONAL),
)
), 'List of group object. A group has a courseid, a name, a description and an enrolment key.'
)
@@ -712,4 +712,4 @@ public static function delete_groupmembers_returns() {
return core_group_external::delete_group_members_returns();
}
-}
+}

0 comments on commit ebf57c7

Please sign in to comment.