From bc6efcb4378152f197146438adecbc7cc8096baf Mon Sep 17 00:00:00 2001 From: Tien Nguyen Phuc Date: Wed, 8 Jan 2020 15:31:46 +0700 Subject: [PATCH] MDL-67638 Course: update course timemodified on bulk category move --- course/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/course/lib.php b/course/lib.php index 23088e544dd..9eca03f42cc 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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) {