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

Moodle bug with course restore section count

    XMLWordPrintable

    Details

    • Database:
      Any
    • Testing Instructions:
      Hide

      Backup/restore

      1. Create a course with 30 sections.
        • Place something in the 29th and 30th sections
      2. Create backup for all 30 sections.
      3. Restore backup with all sections selected into a course with 10 sections or fewer.
      4. Verify that restored course has sections called "Orphaned activities (section {29,30}

        )" with content from section 29/30 listed.

      5. Verify that when switching to 29 sections, the "Orphaned activities (section 29)" is now the section 29, but the section 30 is still considered 'Orphaned'

      Import

      1. Repeat test above with import instead of backup/restore.

      Course editing via course settings

      1. Create a course with 11 sections with content.
      2. Then in the course settings, change the number of sections to be 10.
      3. Verify that course has a section called "Orphaned activities (section 11)" with content from section 11 listed.
      Show
      Backup/restore Create a course with 30 sections. Place something in the 29th and 30th sections Create backup for all 30 sections. Restore backup with all sections selected into a course with 10 sections or fewer. Verify that restored course has sections called "Orphaned activities (section {29,30} )" with content from section 29/30 listed. Verify that when switching to 29 sections, the "Orphaned activities (section 29)" is now the section 29, but the section 30 is still considered 'Orphaned' Import Repeat test above with import instead of backup/restore. Course editing via course settings Create a course with 11 sections with content. Then in the course settings, change the number of sections to be 10. Verify that course has a section called "Orphaned activities (section 11)" with content from section 11 listed.
    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-22669-master
    • Story Points:
      8
    • Sprint:
      BACKEND Sprint 6

      Description

      Course import/restore: if source course has more sections, create them and increase numsections

      Before this, all modules that were in non-existant sections sent to section 0.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Nov/13