Merge branch 'MDL-67638_master' of https://github.com/nguyenphuctien/moodle
authorSara Arjona <sara@moodle.com>
Wed, 15 Jan 2020 11:19:34 +0000 (12:19 +0100)
committerSara Arjona <sara@moodle.com>
Wed, 15 Jan 2020 11:19:34 +0000 (12:19 +0100)
course/lib.php

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