-
Bug
-
Resolution: Inactive
-
Minor
-
None
-
2.7.3
-
None
-
2015010500
-
MOODLE_27_STABLE
links_with_navigation.php:59 - $PAGE->requires->js_init_call('M.block_course_menu_fix_links.init', array(), true, $module);
There appears to be some JS files missing from the repository, as the page is requiring functions that are not available.
Steps to replicate:
- Add course menu block to course.
- Configure the course menu block.
- Activate custom links.
- Add a custom link and enable "Keep page navigation visible on the same page".
- Save changes and click on the custom link.
Debug:
Exception: Coding error detected, it must be fixed by a programmer: Attempt to require a JavaScript file that does not exist. in ./lib/outputrequirementslib.php on line 689.
Stack trace:
line 689 of ./lib/outputrequirementslib.php: coding_exception thrown
line 821 of ./lib/outputrequirementslib.php: call to page_requirements_manager->js_fix_url()
line 1044 of ./lib/outputrequirementslib.php: call to page_requirements_manager->js_module()
line 1023 of ./lib/outputrequirementslib.php: call to page_requirements_manager->js_init_code()
line 59 of ./blocks/course_menu/link_with_navigation.php: call to page_requirements_manager->js_init_call()
Using the latest code from the GitHub repository.