Maybe this fixes the enrolment thing?
This commit is contained in:
parent
906d5d65f2
commit
9d13d471c3
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue