Permalink
Browse files

MDL-34529: Fixed ordering of course sections when performing import/r…

…estore by adding the sort parameter.
  • Loading branch information...
1 parent 947ba9c commit 0c62ad79fb8d0e277da3c4bad4a027db36bec179 Jason Ilicic committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/util/dbops/backup_plan_dbops.class.php
@@ -112,7 +112,7 @@ public static function get_sections_from_courseid($courseid) {
// Get all sections belonging to requested course
$sectionsarr = array();
- $sections = $DB->get_records('course_sections', array('course' => $courseid));
+ $sections = $DB->get_records('course_sections', array('course' => $courseid), 'section');
foreach ($sections as $section) {
$sectionsarr[] = $section->id;
}

0 comments on commit 0c62ad7

Please sign in to comment.