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

Generated courses do not have valid start date, course reset updates module dates incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.7, 2.9.1, 3.0
    • Fix Version/s: 2.8.9, 2.9.3
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      1. Login as an administrator make sure that debugging is set to DEVELOPER.
      2. Go to Site administration ► Development ► Make test course
      3. Choose "XS" for "Size of course" and enter a value for "Course short name".
      4. Click on "Create a course"
      5. On the created course's main page, select the auto-generated Assignment.
      6. Edit the assignment's settings.
      7. Enable the assignment's due date by setting the "Enable" check box for the "Due Date" row as checked.
      8. Click on "Save and return to course"
      9. Under the Course administration, click on "Reset".
      10. For the "Course start date" row, set the Enable check box as checked.
      11. Adjust the Course start date by +n/-n days.
      12. Click on "Reset course"
      13. Go back to the assignment and check its due date.
        Confirm that the assignment's due date has also been adjusted by +n/-n days.
      Show
      Login as an administrator make sure that debugging is set to DEVELOPER. Go to Site administration ► Development ► Make test course Choose "XS" for "Size of course" and enter a value for "Course short name". Click on "Create a course" On the created course's main page, select the auto-generated Assignment. Edit the assignment's settings. Enable the assignment's due date by setting the "Enable" check box for the "Due Date" row as checked. Click on "Save and return to course" Under the Course administration, click on "Reset". For the "Course start date" row, set the Enable check box as checked. Adjust the Course start date by +n/-n days. Click on "Reset course" Go back to the assignment and check its due date. Confirm that the assignment's due date has also been adjusted by +n/-n days.
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE, MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-51128-master

      Description

      Steps to reproduce:

      1. Login as an administrator make sure that debugging is set to DEVELOPER.
      2. Go to Site administration ► Development ► Make test course
      3. Choose "XS" for "Size of course" and enter a value for "Course short name".
      4. Click on "Create a course"
      5. On the created course's main page, select the auto-generated Assignment.
      6. Edit the assignment's settings.
      7. Enable the assignment's due date by setting the "Enable" check box for the "Due Date" row as checked.
      8. Click on "Save and return to course"
      9. Under the Course administration, click on "Reset".
      10. For the "Course start date" row, set the Enable check box as checked.
      11. Adjust the Course start date by 1 day.
      12. Click on "Reset course"
      13. Go back to the assignment and check its due date.

      Expected Results:

      1. The assignment's due date should have been adjusted by 1 day.

      Actual Results:

      1. The assignment's due date is adjusted by more than 45 years in the future.
      • i.e. The original due date was 17/08/2015, the course start date is adjusted to 18/08/2015, the assignment's due date becomes 02/04/2061.

      Other Notes:

      • This issue only seems to occur on the auto-generated assignment. For manually created assignments, it seems that the due dates are being properly adjusted.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jpataleta Jun Pataleta
              Reporter:
              jpataleta Jun Pataleta
              Peer reviewer:
              Marina Glancy
              Integrator:
              Dan Poltawski
              Tester:
              cameron1729
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Nov/15