Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-81792

Course upload with enrolment_N_cohortname missing mandatory fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 4.4
    • Course
    • MOODLE_404_STABLE

      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.

       

            Unassigned Unassigned
            leonstr Leon Stringer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 29 minutes
                29m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.