-
Bug
-
Resolution: Fixed
-
Minor
-
4.4
-
MOODLE_404_STABLE
-
MOODLE_404_STABLE
-
MDL-82310-404 -
-
2
-
HQ 2024 Sprint I2.3 Moppies
This issue is part of the course hierarch project.
Context
Moodle 4.4 was the first version to implement delegated sections. Its scope was only to refactor and prepare the code to land mod_subsection into the core. Moodle 4.4 could hide any section controlled by a component (aka delegated section). However, the course restore process was not altered and can produce some inconsistencies when restoring a course from 4.5 with mod_subsection instances.
Issue goals
Fix: Moodle 4.4 must restore any "component" section field as null. This way, it will be treated as a regular section.
Any version prior to 4.4 would not restore the "component" field because it did not exist. But 4.4 is now restoring the field even if mod_subsection is not compatible. This has resulted in the activities being restored in an orphaned delegated section, which is not displayed on the course page.
The bug can only happen with a Moodle 4.5+ backup from a course with mod_subsection instances. For this reason, it would be great if this potential bug is fixed before the release of Moodle 4.5.