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:
Dan Poltawski 2015-11-18 11:45:45 +00:00
parent 26653c8b5c
commit 65b26a461e

View File

@ -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;
}