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 c6d7689 commit 3f7df55d1ca2cefb251a8482c1eed27bd6d85ab8 Jason Ilicic committed with stronk7 Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/util/dbops/backup_plan_dbops.class.php
View
2 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 3f7df55

Please sign in to comment.