Attempting to upload courses with a CSV containing enrolment_1 = cohort and valid enrolment_1_cohortname fails with Missing value for mandatory fields: cohortidnumber, role. This works with Moodle 4.3.4.
Steps to reproduce issue
1. Prepare a CSV file containing (assumes site has category with database ID 1):
shortname,fullname,category,enrolment_1,enrolment_1_cohortname
|
Course 1,Course 1,1,cohort,Cohort 1
|
2. As a site admin:
a. Create a system cohort with name "Cohort 1".
b. Go to Site administration > Courses > Upload courses.
c. Upload the above CSV file and click Preview
Expected results
Status column has no warnings, clicking Upload courses shows Courses created: 1.
Actual results
Status column contains Missing value for mandatory fields: cohortidnumber, role, clicking Upload courses shows Courses errors: 1.
- is a regression caused by
-
MDL-43820 tool_uploadcourse supports multiple enrolment instances of the same type
-
- Closed
-