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

When a teacher restores a course activities are not restored

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: 3.3
    • Component/s: Backup
    • Labels:
    • Testing Instructions:
      Hide

      Before the test make sure that your editingteacher role does not have 'rolldates' permission (default behavior)

      1. As admin/course manager create two courses with different start dates and enrol a teacher in them
      2. As a teacher backup a course with activities
      3. Restore it into another course
      4. Make sure that the "start date" field is locked by configuration
      5. Select "Override course configuration"
      6. Complete restore
      7. Make sure the activities were restored and course date was NOT changed
      8. As admin go to Restore settings (in site administration) and lock "Overwrite course start date" for merging and replacing the course
      9. As a teacher restore course into another course again and again select "Override course configuration"
      10. The start date is now locked by permission (not allowed) and locked by config (must always override)
      11. Make sure that after restore the target course start date did not change
      12. Make sure activities were restored (if you restored into the same course you will have two of each now)
      13. As admin change teacher role to allow 'rolldates'
      14. As a teacher restore course into another course again and again select "Override course configuration"
      15. The start date should now be locked by config (must always override)
      16. Make sure course start date changed after restore
      17. Make sure activities were restored (if you restored into the same course you will have three of each now)
      18. Manually change the start date and course name on the target course back to what it was or just create a new course
      19. As a teacher restore course into another course again but do not select "Override course configuration"
      20. Make sure all activities were restored and course configuration (name, start date, summary, etc.) was not changed
      Show
      Before the test make sure that your editingteacher role does not have 'rolldates' permission (default behavior) As admin/course manager create two courses with different start dates and enrol a teacher in them As a teacher backup a course with activities Restore it into another course Make sure that the "start date" field is locked by configuration Select "Override course configuration" Complete restore Make sure the activities were restored and course date was NOT changed As admin go to Restore settings (in site administration) and lock "Overwrite course start date" for merging and replacing the course As a teacher restore course into another course again and again select "Override course configuration" The start date is now locked by permission (not allowed) and locked by config (must always override) Make sure that after restore the target course start date did not change Make sure activities were restored (if you restored into the same course you will have two of each now) As admin change teacher role to allow 'rolldates' As a teacher restore course into another course again and again select "Override course configuration" The start date should now be locked by config (must always override) Make sure course start date changed after restore Make sure activities were restored (if you restored into the same course you will have three of each now) Manually change the start date and course name on the target course back to what it was or just create a new course As a teacher restore course into another course again but do not select "Override course configuration" Make sure all activities were restored and course configuration (name, start date, summary, etc.) was not changed
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      wip-MDL-58594-v2

      Description

      When a teacher performs a course restore, duplicate items are skipped instead of being duplicated, as called for in the test.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17