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

Course Reset does not adjust Date Restrictions

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      0. Ensure availability is enabled in settings.
      1. Create a new course with start date 10 October 2015
      2. Add a Page activity to week 1, and set restrict access date 'from' 10 October 2015 00:00.
      3. Edit the settings for the second week (17-23) and set restrict access 'until' 24 October 2015 00:00.
      EXPECTED (existing behaviour): On the course page, the activity start date should match the first week start date (10 October) and the section end date should match the second week end date (end of 23 October)
      4. Click on the reset option
      5. Enable the date selector and set the date to 20 October 2015.
      6. Continue through the screens until you get back to the course page.
      EXPECTED: The activity start date should match the first week start date (20 October) and the section end date should match the second week end date, although depending on your timezone it may be an hour different due to daylight saving time (2 November 11:00pm).
      7. Reset again but this time put it back to 10 October.
      EXPECTED: The dates are exactly as they were previously (after step 3).

      Show
      0. Ensure availability is enabled in settings. 1. Create a new course with start date 10 October 2015 2. Add a Page activity to week 1, and set restrict access date 'from' 10 October 2015 00:00. 3. Edit the settings for the second week (17-23) and set restrict access 'until' 24 October 2015 00:00. EXPECTED (existing behaviour): On the course page, the activity start date should match the first week start date (10 October) and the section end date should match the second week end date (end of 23 October) 4. Click on the reset option 5. Enable the date selector and set the date to 20 October 2015. 6. Continue through the screens until you get back to the course page. EXPECTED: The activity start date should match the first week start date (20 October) and the section end date should match the second week end date, although depending on your timezone it may be an hour different due to daylight saving time (2 November 11:00pm). 7. Reset again but this time put it back to 10 October. EXPECTED: The dates are exactly as they were previously (after step 3).
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Pull Master Branch:
      MDL-51467-master

      Description

      When a date restriction is set on an activity or label, and the course is reset to a new start date, the date restrictions do not adjust.

      1) Create a new course to start Jan 1, 2015
      2) Add a label with date restriction from Jan2, 2015 and Until Jan3, 2015
      3) Reset the course with at start date of Jan 1, 2016.
      4) Verify the restriction dates are still set for 2015.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

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