MDL-41249 assign: Restore step missing gradingform mapping

Thanks to Matthieu Raggett for the report and the solution.
This commit is contained in:
Damyon Wiese
2013-08-25 21:24:09 +08:00
parent a9657adb0f
commit a7effadb53
@@ -128,6 +128,7 @@ class restore_assign_activity_structure_step extends restore_activity_structure_
// Note - the old contextid is required in order to be able to restore files stored in
// sub plugin file areas attached to the submissionid.
$this->set_mapping('submission', $oldid, $newitemid, false, null, $this->task->get_old_contextid());
$this->set_mapping(restore_gradingform_plugin::itemid_mapping('submissions'), $oldid, $newitemid);
}
/**