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

This commit is contained in:
Tien Nguyen Phuc
2020-01-13 10:38:12 +07:00
parent 77d1c41502
commit bc6efcb437
+1
View 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) {