mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-67638 Course: update course timemodified on bulk category move
This commit is contained in:
parent
77d1c41502
commit
bc6efcb437
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user