-
Bug
-
Resolution: Fixed
-
Minor
-
4.5
-
MOODLE_405_STABLE
-
MOODLE_405_STABLE
-
mdl-82784_main_wip
-
In Moodle 4.5, reactive JS searches for the course add sections button, and changes it to a message if the maximum number of sections has been reached. However it tries to do this even on single section pages, where there is no such button, and it gives an error.
Steps to reproduce:
- Create a new Custom Sections format course.
- Turn editing on.
- Open the JavaScript console, to show error messages.
- Click on a section in the course index, to go to the section's page.
- An error message "TypeError: courseAddSections is null" appears in the console.