MDL-34529: Fixed ordering of course sections when performing import/restore by adding the sort parameter.
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
c6d7689621
commit
3f7df55d1c
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user