MDL-34529: Fixed ordering of course sections when performing import/restore by adding the sort parameter.

This commit is contained in:
Jason Ilicic
2012-07-25 10:29:55 +09:30
parent 947ba9c802
commit 0c62ad79fb
@@ -112,7 +112,7 @@ abstract class backup_plan_dbops extends backup_dbops {
// 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;
}