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

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Deferred
    • 2.0.2, 2.1.4, 2.2.1
    • None
    • Course
    • MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE
    • 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

              moodle.com Moodle HQ
              darko.miletic Darko Miletic
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: