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

When changing a course section number to lower values, conten in the rest of the sections remains but is hidden

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Deferred
    • Affects Version/s: 2.0.2, 2.1.4, 2.2.1
    • Fix Version/s: None
    • Component/s: Course
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • Testing Instructions:
      Hide

      1. Create a new empty course with 20 sections
      2. Enter the course and now change the number of sections to 16
      3. Look into course_sections table and you will see that sections are still there
      4. Export the course and notice the orphaned sections are present there

      Show
      1. Create a new empty course with 20 sections 2. Enter the course and now change the number of sections to 16 3. Look into course_sections table and you will see that sections are still there 4. Export the course and notice the orphaned sections are present there

      Description

      If you ever try to change number of sections of an existing course to a lower value than initial Moodle will NOT remove the extra sections and associated activities etc. They will be present there forever until you actually delete the course. They will be preserved even during export/import.

      To me this looks like a bug.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              darko.miletic Darko Miletic
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: