mirror of
https://github.com/moodle/moodle.git
synced 2025-02-08 09:02:07 +01:00
restore MDL-23863 Category->coursecount is incremented if restoring to a new course.
This commit is contained in:
parent
47fffd8d60
commit
593fc4a977
@ -920,7 +920,12 @@ abstract class restore_dbops {
|
||||
$course->timemodified = $course->timecreated;
|
||||
$course->visible = $category->visible;
|
||||
|
||||
return $DB->insert_record('course', $course);
|
||||
$courseid = $DB->insert_record('course', $course);
|
||||
|
||||
$category->coursecount++;
|
||||
$DB->update_record('course_categories', $category);
|
||||
|
||||
return $courseid;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user