MDL-40214 mod_assign: Fixed issue with custom scale being lost during restore.
This commit is contained in:
committed by
Mark Nelson
parent
abb767192f
commit
7e8638914f
@@ -89,6 +89,9 @@ class restore_assign_activity_structure_step extends restore_activity_structure_
|
||||
$data->cutoffdate = $this->apply_date_offset($data->cutoffdate);
|
||||
}
|
||||
|
||||
if ($data->grade < 0) { // Scale found, get mapping.
|
||||
$data->grade = -($this->get_mappingid('scale', abs($data->grade)));
|
||||
}
|
||||
|
||||
$newitemid = $DB->insert_record('assign', $data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user