Skip to content
Browse files

MDL-33770 Web service: create_groups should not require enrolmentkey

  • Loading branch information...
1 parent f8dfdb5 commit 32435a6968e9f7214af8cc3e4fe734553bb67b6c @mouneyrac mouneyrac committed Jun 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 group/externallib.php
View
2 group/externallib.php
@@ -53,7 +53,7 @@ public static function create_groups_parameters() {
'name' => new external_value(PARAM_TEXT, 'multilang compatible name, course unique'),
'description' => new external_value(PARAM_RAW, 'group description text'),
'descriptionformat' => new external_format_value('description', VALUE_DEFAULT),
- '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.'
)

0 comments on commit 32435a6

Please sign in to comment.
Something went wrong with that request. Please try again.