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

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.4, 2.9.5, 2.9.6, 3.0.1, 3.0.2, 3.0.3, 3.0.4
    • Fix Version/s: 3.0.5, 3.1.1
    • Component/s: Course
    • Labels:

      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

              • Votes:
                5 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Jul/16