This commit is contained in:
Sara Arjona 2020-01-15 12:19:34 +01:00
commit daa7107bfb

View file

@ -2209,6 +2209,7 @@ function move_courses($courseids, $categoryid) {
foreach ($dbcourses as $dbcourse) { foreach ($dbcourses as $dbcourse) {
$course = new stdClass(); $course = new stdClass();
$course->id = $dbcourse->id; $course->id = $dbcourse->id;
$course->timemodified = time();
$course->category = $category->id; $course->category = $category->id;
$course->sortorder = $category->sortorder + MAX_COURSES_IN_CATEGORY - $i++; $course->sortorder = $category->sortorder + MAX_COURSES_IN_CATEGORY - $i++;
if ($category->visible == 0) { if ($category->visible == 0) {