mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
If group isn't detected when restoring events, default it to 0
This commit is contained in:
parent
43719c6c9b
commit
22c8200ff4
@ -1080,6 +1080,9 @@
|
||||
$group = backup_getid($restore->backup_unique_code,"group",$eve->groupid);
|
||||
if ($group) {
|
||||
$eve->groupid = $group->new_id;
|
||||
} else {
|
||||
//Assign it to group 0
|
||||
$eve->groupid = 0
|
||||
}
|
||||
|
||||
//The structure is equal to the db, so insert the event
|
||||
|
Loading…
x
Reference in New Issue
Block a user