mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-46017 Assign: Restore can't rely allocated marker fields existing in backup
This commit is contained in:
parent
5414931209
commit
0ea2c043bc
1 changed files with 3 additions and 1 deletions
|
@ -157,7 +157,9 @@ class restore_assign_activity_structure_step extends restore_activity_structure_
|
|||
$data->assignment = $this->get_new_parentid('assign');
|
||||
|
||||
$data->userid = $this->get_mappingid('user', $data->userid);
|
||||
$data->allocatedmarker = $this->get_mappingid('user', $data->allocatedmarker);
|
||||
if (!empty($data->allocatedmarker)) {
|
||||
$data->allocatedmarker = $this->get_mappingid('user', $data->allocatedmarker);
|
||||
}
|
||||
if (!empty($data->extensionduedate)) {
|
||||
$data->extensionduedate = $this->apply_date_offset($data->extensionduedate);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue