mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-29102 fix notice when auto-creating groups in existing grouping
This commit is contained in:
parent
60e99097e4
commit
ca50186f73
@ -172,11 +172,10 @@ if ($editform->is_cancelled()) {
|
||||
|
||||
// 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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user