-
Bug
-
Resolution: Deferred
-
Minor
-
None
-
3.8.2
-
MOODLE_38_STABLE
FULL STEPS
Restore a backup file to a course that is not moodle2 format (i.e. IMSCC from a Canvas export) with the delete existing content option.
EXPECTED
Expect that general restore default settings configured sitewide (i.e., keep current roles and enrolments set to true) will be used.
ACTUALLY HAPPENS
General restore default settings are not used, rather the hard-coded values from backup/moodle2/restore_course_task.class.php:206 (i.e., keep current roles and enrolments set to false) are used.
It looks like at backup/util/dbops/restore_controller_dbops.class.php:137 if the format is not FORMAT_MOODLE, then apply_defaults() from line 146 that pulls the sitewide settings is never called.
This configuration presents a problem for us because teachers are removing active enrolments from courses when using a backup file for content that is not moodle2 format. Is there a way we can opt to use these settings, regardless of the backup format?
Thank you!