mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-34529: Fixed ordering of course sections when performing import/restore by adding the sort parameter.
This commit is contained in:
parent
4cb18cb080
commit
b3e10b89e9
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user