mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-45934 backup: do not reset completion enabled flag
The 'completion enabled' flag does not reflect any course data, its a course setting. Previously when doing a backup deleteting existing course content this was forced off when it should not have been.
This commit is contained in:
parent
26653c8b5c
commit
65b26a461e
@ -4936,7 +4936,6 @@ function remove_course_contents($courseid, $showfeedback = true, array $options
|
||||
$oldcourse->summary = '';
|
||||
$oldcourse->cacherev = 0;
|
||||
$oldcourse->legacyfiles = 0;
|
||||
$oldcourse->enablecompletion = 0;
|
||||
if (!empty($options['keep_groups_and_groupings'])) {
|
||||
$oldcourse->defaultgroupingid = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user