gjbarnard / moodle-format_topcoll

Collapsed Topics course format for Moodle.
http://docs.moodle.org/en/Collapsed_Topics_course_format
GNU General Public License v3.0
35 stars 60 forks source link

Error with Orphaned Sections when editing #151

Closed philipblake closed 3 months ago

philipblake commented 3 months ago

Describe the bug Moodle 4.4.1: When editing a course that has less sections specified in the settings than there are on the course page (giving "Orphaned Sections") Moodle will give a "function course_section_add_cm_control() " error when editing the course.

To Reproduce Steps to reproduce the behaviour:

image

Expected behaviour Sections with content that are above the number defined in the course settings are displayed as "Orphaned" when editing, but the content is still available. E.g. in Moodle 4.1

image

Versions (please complete the following information):

Additional context

gjb2048 commented 3 months ago

Down to removal of core deprecated class member variable.

gjb2048 commented 3 months ago

@philipblake Released in https://moodle.org/plugins/format_topcoll/404.1.0/32456.