diff --git a/classes/external/upload_course.php b/classes/external/upload_course.php index 43643a0..be471ec 100644 --- a/classes/external/upload_course.php +++ b/classes/external/upload_course.php @@ -133,11 +133,6 @@ public static function execute(int $category_id=null, bool $only_check_permissio backup::TARGET_NEW_COURSE ); - // do restore: set required enrolment setting - // TODO: is correctly stored in mbz (status 0 means active). So this is not required, instead configure it to apply enrolment settings - $plan = $controller->get_plan(); - $plan->get_tasks()[0]->get_setting('enrolments')->set_value(backup::ENROL_ALWAYS); - // do restore: execute $controller->execute_precheck(); $controller->execute_plan();