Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.3.4, 3.4.1
-
Component/s: Enrolments
-
Testing Instructions:
-
Affected Branches:MOODLE_33_STABLE, MOODLE_34_STABLE
-
Fixed Branches:MOODLE_33_STABLE, MOODLE_34_STABLE
-
Pull from Repository:
-
Pull Master Branch:
MDL-61265-master -
Pull Master Diff URL:
Description
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)