Skip to content
Permalink
Browse files

Merge branch 'MDL-43306-24' of git://github.com/danpoltawski/moodle i…

…nto MOODLE_24_STABLE
  • Loading branch information...
stronk7 committed Dec 17, 2013
2 parents 003638c + bea3c27 commit c70955dfa9367cb066c7d83945c1fc9cba8532a1
Showing with 3 additions and 3 deletions.
  1. +3 −3 backup/moodle2/restore_stepslib.php
@@ -2566,9 +2566,9 @@ protected function process_grade_item($data) {
$gradeitem = new grade_item($data, false);
$gradeitem->insert('restore');
//sortorder is automatically assigned when inserting. Re-instate the previous sortorder
$gradeitem->sortorder = $data->sortorder;
$gradeitem->update('restore');
// Reinstate the grade item close to its original sortorder, if something already exists
// in the original sortorer then it will be first.
$gradeitem->move_after_sortorder($data->sortorder);
// Set mapping, saving the original category id into parentitemid
// gradebook restore (final task) will need it to reorganise items

0 comments on commit c70955d

Please sign in to comment.
You can’t perform that action at this time.