Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.3.7, 2.4.4, 2.5
-
Component/s: Navigation
-
Labels:
-
Testing Instructions:
-
Affected Branches:MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
Fixed Branches:MOODLE_23_STABLE, MOODLE_24_STABLE, MOODLE_25_STABLE
-
Pull from Repository:
-
Pull Master Branch:wip-
MDL-40344-m26 -
Pull Master Diff URL:
Description
This is an annoying issue to reproduce, you need to have the following situation:
- Two categories A and B
- One course C which has the same ID as Category B. This course should be in Category A.
- One course D which has a random ID and is in Category B.
- A user enrolled in both courses.
I hit this with my generated site that contains 25+ categories (3 levels deep) and 100 courses randomly assigned to categories.
With the above situation produced:
- proceed to enrol a student in all courses.
- Log in as the student
- Using the navigation block expand the My courses branch, and then expand the first category.
- Now try to expand the sibling category.
- You'll likely get the wrong content.