Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…estore by adding the sort parameter.
  • Loading branch information...
commit b3e10b89e9f4f0d36092bd5c5371782993e30bd8 1 parent 4cb18cb
@jasonilicic jasonilicic authored stronk7 committed
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.