mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-14692 groupings restore logic switched - credit goes to Vitor Rocio
This commit is contained in:
parent
b90d006cd4
commit
98d80d851b
@ -3223,7 +3223,7 @@ define('RESTORE_GROUPS_GROUPINGS', 3);
|
||||
//We have to recode the groupid field
|
||||
$grouping = backup_getid($restore->backup_unique_code, 'groupings', $groupingid);
|
||||
|
||||
if ($restore->groups == RESTORE_GROUPS_GROUPINGS or $restore->groups == RESTORE_GROUPINGS_ONLY) {
|
||||
if ($restore->groups != RESTORE_GROUPS_GROUPINGS and $restore->groups != RESTORE_GROUPINGS_ONLY) {
|
||||
$grouping->new_id = 0;
|
||||
}
|
||||
return $grouping;
|
||||
|
Loading…
x
Reference in New Issue
Block a user