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

Moodle bug with course restore section count

XMLWordPrintable

    • Any
    • MOODLE_19_STABLE, MOODLE_20_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
    • MOODLE_24_STABLE, MOODLE_25_STABLE
    • MDL-22669-master
    • Moderate
    • 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.
    • 8
    • BACKEND Sprint 6

      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.

            fred Frédéric Massart
            tlock Tim Lock
            Petr Skoda Petr Skoda
            Dan Poltawski Dan Poltawski
            Andrew Lyons Andrew Lyons
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

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