moodle-format_topcoll icon indicating copy to clipboard operation
moodle-format_topcoll copied to clipboard

Incompatibility with mod_subsection

Open PhMemmel opened this issue 9 months ago • 3 comments
trafficstars

Describe the bug Moodle 4.5 introduced mod_subsection which provides the possibility to add subsections to a course. When adding a subsection in format_topcoll a section "Orphaned activities" is being shown including a message that the section is not part of the course structure and the contained activities will not be visible to the students.

I suspect this is a bug?

To Reproduce Steps to reproduce the behaviour:

  1. Use Moodle 4.5
  2. Create course with format_topcoll as course format
  3. In website administration enable the plugin mod_subcourse
  4. Enable edit mode
  5. Add a subsection by using the square plus icon in the course content area in a section
  6. See the described error message

Screenshots

Image

Versions (please complete the following information):

  • Moodle: 4.5
  • Format: latest main , 405.0.1

PhMemmel avatar Feb 12 '25 07:02 PhMemmel

Not a bug, as that would be because of a fault in the code, but the need to support new core functionality. Already spent quite a bit of time on this in private development repository to avoid issues with users thinking they can install development code in production. Solution will happen when it happens.

gjb2048 avatar Feb 12 '25 07:02 gjb2048

Thanks for the quick reply. I considered it as a "bug", because there is a version declared to be compatible with moodle 4.5 which apparently is not the case. I understand that it's not necessarily easy to implement new functionality. Is there a chance to quick fix this in a way that the usage of subsections is disabled in format_topcoll even if mod_subsection is enabled globally? That would be great to have until it is implemented properly?

PhMemmel avatar Feb 12 '25 07:02 PhMemmel

CT is compatible with M4.5, just not with Subsections which are an option you have to enable.

No quick fix either way. Only current solution is to disable subsections globally.

gjb2048 avatar Feb 12 '25 07:02 gjb2048

Hopefully working in V405.0.3+

gjb2048 avatar Apr 21 '25 13:04 gjb2048