duplicate_course function found in course/externallib.php (https://github.com/moodle/moodle/blob/MOODLE_39_STABLE/course/externallib.php#L1367) checks that a submitted value is either 0 or 1.
However, backup option for enrolments (https://github.com/moodle/moodle/blob/MOODLE_39_STABLE/course/externallib.php#L1351, https://github.com/moodle/moodle/blob/MOODLE_39_STABLE/backup/backup.class.php#L151) can be 2.
This causes problems while trying to duplicate a course with ENROL_ALWAYS option chosen.
- has a non-specific relationship to
-
MDL-40838 Restoring course with non-default enrollment methods does not restore those enrollment methods if users aren't also restored
-
- Closed
-