Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33770 Web service: create_groups should not require enrolmentkey

  • Loading branch information...
commit 18c264790a50dcd959838651a3e8766d3d60c345 1 parent 7523da4
Jérôme Mouneyrac mouneyrac authored samhemelryk committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  group/externallib.php
2  group/externallib.php
View
@@ -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.'
)
Please sign in to comment.
Something went wrong with that request. Please try again.