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

Reducing amount of sections in a course deletes summary content when other resources/activities not added to section yet

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.9.4, 2.9.5, 2.9.6, 3.0.1, 3.0.2, 3.0.3, 3.0.4
    • 3.0.5, 3.1.1
    • Course
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_30_STABLE, MOODLE_31_STABLE
    • MDL-54557-master
    • Hide
      1. Create course using the topics format
      2. In the last section fill the summary but do not add any activities
      3. Reduce number of sections, last section should disappear
      4. Increase number of sections
      5. Make sure the summary of the last section is restored
      6. Repeat in weeks format
      Show
      Create course using the topics format In the last section fill the summary but do not add any activities Reduce number of sections, last section should disappear Increase number of sections Make sure the summary of the last section is restored Repeat in weeks format

    Description

      Reducing amount of sections in a course deletes content that exists within the Summary if there are no other Activities and Resources in that section. This occurred in 2.9 build. I consider this a bug/regression but some others may not.

      I think the section should be considered orphaned if there is text in the Summary, and only text in the Summary. That is 'content'.

      It's the expected behavior and the consistent behavior that is most important I think. If other resources and activities are not 'deleted' then I would expect any other content that resides in that section to also not be deleted. I understand the chances of having just content in a Summary and changing the number of sections at the same time might be slim but not unheard of. I know of teachers in our university that use just Summaries with images, links, etc.

      To recreate:

      In 2.8

      • create some text, links, embedded video, images, etc. within a Summary in a Section that resides at the bottom of your site
      • make sure there are no other Resources or Activities added yet
      • reduce the number of sections so that the section you just created a summary for is no longer visible
      • add to the number of sections so that the section you just created a summary for is visible again
      • the content that was created still exists

      In 2.9+

      • create some text, links, embedded video, images, etc. within a Summary in a Section that resides at the bottom of your site
      • make sure there are no other Resources or Activities added yet
      • reduce the number of sections so that the section you just created a summary for is no longer visible
      • add to the number of sections so that the section you just created a summary for is visible again
      • the content that was created is gone and restoring the number of sections cannot bring back the summary

      Mike Churchward was able to pinpoint where this happened https://github.com/moodle/moodle/commit/bb01883867f3c85ebaa094615ddfadb8c5f1f518

      https://tracker.moodle.org/browse/MDL-10405

      More discussion around this: https://moodle.org/mod/forum/discuss.php?d=195836#p1341561

      Attachments

        Issue Links

          Activity

            People

              marina Marina Glancy
              pjfish06 Susan Mangan
              cameron1729 cameron1729
              Dan Poltawski Dan Poltawski
              Rajesh Taneja Rajesh Taneja
              Amaia Anabitarte, Carlos Escobedo, Laurent David, Mikel Martín Corrales, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jul/16