-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
3.5.2
-
MOODLE_35_STABLE
When a template for a course format contains a core-context-menu-item, it should be processed when the page is loaded and added to the page's context menu. However, it appears that this is not happening on the first load. On subsequent loads, it is displayed.
This is tricky to reproduce, as it requires an additional course format.
Steps to reproduce:
- Download attached course format plugin format_topics2 and install it on your moodle site.
- Create a course with "Topics format 2" format, and enrol a student on the course
- Log in to your moodle site as the student, to ensure they can see the course.
- Log in to the app as the student.
- Enter the course in the app
- You should see the "Fake course format" heading
- Open the context menu
- Expected: There is an "Extra link" menu item in the context menu (See course/format/topics2/templates/mobile_course.mustache for the markup)
- Actual: "Extra link" does not appear
- Leave and re-enter the course
- Open the context menu
- "Extra link" now appears
The attached video demonstrates the issue. The course list page might look a bit weird due to CSS from another plugin.