Permalink
Browse files

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

…into MOODLE_21_STABLE
  • Loading branch information...
2 parents c3027dd + 4cb9065 commit 94a763cf9220da55f1b7f09d26b55a5233c8837f Sam Hemelryk committed Jan 16, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 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 {

0 comments on commit 94a763c

Please sign in to comment.