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

Course upload from csv ignores enddate because courses in weeks format have automaticenddate set to 1 by default

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 3.3
    • Course
    • MOODLE_33_STABLE

    Description

      I uploaded a csv file with this content:

      shortname;fullname;idnumber;category_idnumber;visible;startdate;enddate;format;enrolment_1;enrolment_1_password;enrolment_1_startdate;enrolment_1_enrolperiod
      Wi17_4711;"WiSe 2017/18: 4711 MyTestCourse";Wi17_4711;1.1.1;1;16.10.2017;16.10.2018;weeks;self;1234;16.10.2017;3632400

      Upload setting: "Create new courses only, skip existing ones" 

      Course default settings: Sections:4

      The course is created with startdate and enddate set to 16.10.2017, but enddate should be 16.10.2018!

      "Course administration" ->"Calculate the end date from the number of sections" is checked, but the course has no sections.

      A short investigation in the database shows: enddate = startdate + 7200 as a result of course/format/weeks/lib.php(get_section_dates) called without sections.

      The creation of the default sections during upload seems to be missing ...

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              trueeh Hartmut Trüe
              Votes:
              4 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Clockify

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