Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge remote-tracking branch 'skodak/w03_MDL-29102_m22_autogrouping' …

…into MOODLE_22_STABLE
  • Loading branch information...
commit 199ba4286b98981a63e01baef44b4be831184d7c 2 parents f0987e9 + cee1176
Sam Hemelryk samhemelryk authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  group/autogroup.php
3  group/autogroup.php
View
@@ -172,11 +172,10 @@
// prepare grouping
if (!empty($data->grouping)) {
- $groupingname = trim($data->groupingname);
if ($data->grouping < 0) {
$grouping = new stdClass();
$grouping->courseid = $COURSE->id;
- $grouping->name = $groupingname;
+ $grouping->name = trim($data->groupingname);
$grouping->id = groups_create_grouping($grouping);
$createdgrouping = $grouping->id;
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.