davidherney / moodle-format_onetopic

Course format Onetopic to LMS Moodle
GNU General Public License v3.0
19 stars 44 forks source link

Cannot add activities to a course with more than 52 sections #108

Closed anieminen closed 2 years ago

anieminen commented 2 years ago

Hi,

If a course using Onetopic format has more than 52 sections, you cannot create new activities to the last sections. This happens because section count exceeds the default maximum number of sections (52), which apparently comes from the old "weekly" course format.

error_sections

In Moodle 3.9.4 a new validation was added for the "section" parameter when adding a new activity. This can cause problems with course formats that don't define their own maximum number of sections: https://docs.moodle.org/dev/Moodle_3.9.4_release_notes#Warning_-_courses_with_many_sections

Urpokarhu1 commented 2 years ago

@davidherney

anieminen commented 2 years ago

It seems that there is a workaround: Go to Site administration > Courses > Course default settings. Change the "Maximum number of sections" value to a bigger number, that exceeds the count of sections on the course, where the error was thrown.

davidherney commented 2 years ago

Yes... Onetopic use the default moodle max section configuration.

Saludos