MDL-67638 Course: update course timemodified on bulk category move

This commit is contained in:
Tien Nguyen Phuc
2020-01-13 10:41:36 +07:00
parent 86a19e4910
commit 68e85534a8
+1
View File
@@ -2202,6 +2202,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) {