Skip to content

Commit

Permalink
MDL-41249 assign: Restore step missing gradingform mapping
Browse files Browse the repository at this point in the history
Thanks to Matthieu Raggett for the report and the solution.
  • Loading branch information
Damyon Wiese committed Aug 25, 2013
1 parent a9657ad commit a7effad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/assign/backup/moodle2/restore_assign_stepslib.php
Expand Up @@ -128,6 +128,7 @@ protected function process_assign_submission($data) {
// 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);
}

/**
Expand Down

0 comments on commit a7effad

Please sign in to comment.