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

Importing a course which include date restricted topics with an old start date produces topics with date restricted dates in the future

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Deferred
    • Icon: Minor Minor
    • None
    • 3.4.3
    • Backup
    • MOODLE_34_STABLE
    • MDL-62687-master
      1. Change the course start date of the original course to a current date 
      2. Or, manually change the date restrictions of the new course
      3. Or, have admin import or restore courses.
    • Hide

      1. Create a course using a current start date, weekly format, all defaults. This is your TARGET course.
      2. Edit a few sections: for "Restrict access" set Student "must" match the following and set the date to the first date of the current week. That is, for section "June 12 - June 18", set the date restriction to June 12; for topic "June 19 - June 25", set the restriction to "June 19".
      3. Create a course using a prior start date (to easily see the issue, set the date at least a couple of years in the past). This is your SOURCE course.
      4. Edit a few sections in this SOURCE course in a simliar fashion as in #2 above (i.e match the topic date restriction date to the date of the section).
      5. Enroll a user with the role of teacher into both TARGET and SOURCE courses.
      5. Log in as the teacher and import the SOURCE course into the TARGET course.
      6. Review the date restrictions set in each topic in the TARGET course. They are future dates, offset in the future by the number of years the SOURCE course start date is in the past.
      7. Note that when the same process described above is performed by an administrator account, the topic restriction dates in the TARGET course coincide with the start date of the course (i.e. they behave normally).

      Show
      1. Create a course using a current start date, weekly format, all defaults. This is your TARGET course. 2. Edit a few sections: for "Restrict access" set Student "must" match the following and set the date to the first date of the current week. That is, for section "June 12 - June 18", set the date restriction to June 12; for topic "June 19 - June 25", set the restriction to "June 19". 3. Create a course using a prior start date (to easily see the issue, set the date at least a couple of years in the past). This is your SOURCE course. 4. Edit a few sections in this SOURCE course in a simliar fashion as in #2 above (i.e match the topic date restriction date to the date of the section). 5. Enroll a user with the role of teacher into both TARGET and SOURCE courses. 5. Log in as the teacher and import the SOURCE course into the TARGET course. 6. Review the date restrictions set in each topic in the TARGET course. They are future dates, offset in the future by the number of years the SOURCE course start date is in the past. 7. Note that when the same process described above is performed by an administrator account, the topic restriction dates in the TARGET course coincide with the start date of the course (i.e. they behave normally).

      When a course with an old start date (e.g. course template created in prior years) with date-restricted topics is imported into an course shell (with a current date), with date-restricted topics, the date-restricted topics now 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.

      Refer to MDL-62570 for a similar situation involving future-dated activities. 

            Unassigned Unassigned
            michael.robinette Mike Robinette (Inactive)
            Votes:
            2 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 - 1 minute
                1m

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