Maybe this fixes the enrolment thing?

This commit is contained in:
Kumi 2023-01-27 13:16:18 +00:00
parent 906d5d65f2
commit 9d13d471c3
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -210,6 +210,8 @@ if ($course) {
backup::MODE_GENERAL, 2, 0); backup::MODE_GENERAL, 2, 0);
$rc->get_plan()->get_setting('overwrite_conf')->set_value(true); $rc->get_plan()->get_setting('overwrite_conf')->set_value(true);
$rc->get_plan()->get_setting('keep_roles_and_enrolments')->set_value(true);
$rc->get_plan()->get_setting('keep_groups_and_groupings')->set_value(true);
} else { } else {
cli_writeln("Creating new course to restore backup"); cli_writeln("Creating new course to restore backup");