Merge branch 'MDL-40214_m24' of https://github.com/markn86/moodle into MOODLE_24_STABLE

This commit is contained in:
Dan Poltawski
2013-09-03 10:07:08 +08:00
@@ -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);