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

Importing courses with old start dates produces assignments with due dates in the future.

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.3.5
    • None
    • Backup
    • MOODLE_33_STABLE
      1. Change the course start date of the original course to a current date 
      2. Or, manually change the assignment due dates of the new course
      3. Or, have admin import or restore courses. 
    • Hide

      To replicate:
      1. Create a course with a prior year course start date (make sure it's at least a couple of years in the past to make the issue obvious)
      2. Create an assignment insuring the due date is selected (should be default)
      3. Create another, blank course, taking all defaults.
      4. Enroll a teacher role into both courses.
      5. Import the 1st course into the second, taking all defaults.
      6. Note the due date for the selected assignment is a future date, offset in the future by the number of years the original course start date is in the past.
      7. Importing the course as administrator behaves differently and due dates are as expected.

      Show
      To replicate: 1. Create a course with a prior year course start date (make sure it's at least a couple of years in the past to make the issue obvious) 2. Create an assignment insuring the due date is selected (should be default) 3. Create another, blank course, taking all defaults. 4. Enroll a teacher role into both courses. 5. Import the 1st course into the second, taking all defaults. 6. Note the due date for the selected assignment is a future date, offset in the future by the number of years the original course start date is in the past. 7. Importing the course as administrator behaves differently and due dates are as expected.

    Description

      When a course with an old start date (e.g. course template created in prior years) is imported into an empty shell (with a current date), the due dates for the imported assignments have future dates. This does not occur if an admin account performs the import. An account with a teacher role was used in the testing of this issue. 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michael.robinette Mike Robinette
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo
              Votes:
              5 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated: