Skip to content

Commit

Permalink
Revert "MDL-43306 restore: fix grade item sortorder restoration"
Browse files Browse the repository at this point in the history
This reverts commit e238b2c.
  • Loading branch information
stronk7 committed Dec 19, 2013
1 parent c751d81 commit f03671d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backup/moodle2/restore_stepslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2782,9 +2782,9 @@ protected function process_grade_item($data) {
$gradeitem = new grade_item($data, false);
$gradeitem->insert('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);
//sortorder is automatically assigned when inserting. Re-instate the previous sortorder
$gradeitem->sortorder = $data->sortorder;
$gradeitem->update('restore');

// Set mapping, saving the original category id into parentitemid
// gradebook restore (final task) will need it to reorganise items
Expand Down

0 comments on commit f03671d

Please sign in to comment.