-
Bug
-
Resolution: Fixed
-
Minor
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-73732-master -
-
3
-
Navigation push 14
Was initially reported in MDL-73674 but seems like it's a different problem.
There is a bug in the function flat_navigation_node::isactive() , it does not really cause any problems on LMS but can easily happen in the custom themes.
If you apply this change:
https://github.com/moodle/moodle/compare/master...marinaglancy:MDL-73674-master-test
and then visit Participants page in any course in topics format you'll get an exception:
Trying to get property 'parent' of non-object in /home/marina/repositories/lms/master/moodle/lib/navigationlib.php on line 3975
|
Side note: I do not understand why the contents of $PAGE->flatnav depends on whether it is first requested before or after $PAGE->secondarynav