mirror of
https://github.com/moodle/moodle.git
synced 2025-03-24 17:40:26 +01:00
Merge branch 'MDL-63798_assign_restore_groups' of git://github.com/davosmith/moodle
This commit is contained in:
commit
70abb41263
@ -167,6 +167,11 @@ class restore_assign_activity_structure_step extends restore_activity_structure_
|
||||
}
|
||||
if (!empty($data->groupid)) {
|
||||
$data->groupid = $this->get_mappingid('group', $data->groupid);
|
||||
if (!$data->groupid) {
|
||||
// If the group does not exist, then the submission cannot be viewed and restoring can
|
||||
// violate the unique index on the submission table.
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
$data->groupid = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user