Merge branch 'w41_MDL-35382_m24_reordertest' of git://github.com/skodak/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2012-10-08 23:54:36 +02:00
commit 3b950bab64

View File

@ -70,7 +70,7 @@ class courselib_testcase extends advanced_testcase {
$course = $this->getDataGenerator()->create_course(array('numsections'=>10), array('createsections'=>true));
$oldsections = array();
$sections = array();
foreach ($DB->get_records('course_sections', array('course'=>$course->id)) as $section) {
foreach ($DB->get_records('course_sections', array('course'=>$course->id), 'id') as $section) {
$oldsections[$section->section] = $section->id;
$sections[$section->id] = $section->section;
}