mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-22033 groupings now enabled unconditionally, groupmembersonly kept as experimental - this simplifies groups code logic a bit, user interface changes should not be significant because the groupings are not visible much until at least one created; hopefully the new description of groupmembersonly will have to preventsome gradebook complaints
This commit is contained in:
parent
e8c2189d78
commit
98da60215e
31 changed files with 137 additions and 214 deletions
|
@ -3056,7 +3056,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
|||
}
|
||||
|
||||
if ($result && $oldversion < 2010033101.02) {
|
||||
|
||||
|
||||
/// Define table license to be created
|
||||
$table = new xmldb_table('license');
|
||||
|
||||
|
@ -3435,6 +3435,17 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL");
|
|||
upgrade_main_savepoint($result, 2010033102.09);
|
||||
}
|
||||
|
||||
if ($result && $oldversion < 2010040700) {
|
||||
// migrate old groupings --> groupmembersonly setting
|
||||
if (isset($CFG->enablegroupings)) {
|
||||
set_config('enablegroupmembersonly', $CFG->enablegroupings);
|
||||
unset_config('enablegroupings');
|
||||
}
|
||||
|
||||
// Main savepoint reached
|
||||
upgrade_main_savepoint($result, 2010040700);
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue