-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.4, 3.4.1
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MDL-61265-master -
When courses are created through Database Enrolment, with no Template course, no Sections (Topics) are created in the course. This is unlike creating a course manually where the site-wide configured default number of sections are created.
Steps to reproduce:
- Check Site Administration -> Courses -> Course Default Settings
- Format: Topics Format
- Number of Sections: 20 (or default 4, or any number greater than zero)
- Set up Database Enrolment to create a new course on sync as per Database Enrolment: Creating Courses testing processes
- Under Site Administration -> Plugins -> Enrolments -> External database, check:
- Creation of new courses -> New Course Template: (empty)
- Under Site Administration -> Plugins -> Enrolments -> External database, check:
- Run Database Enrolment sync (CLI: php /path/to/moodle/enrol/database/cli/sync.php -v)
Expected Result:
- New course created with 20 empty sections
Actual Result:
- New course created with only the header section (section zero)