-
Bug
-
Resolution: Fixed
-
Minor
-
3.2.5, 3.3.2
-
Any
-
MOODLE_32_STABLE, MOODLE_33_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MDL-60653-master -
-
On line 437 of lib/navigationlib.php the double equal comparison is used to compare text strings instead of the triple equal. This means if the key is an integer and equal to 0, then the node will be indented because 0 is equal to "courseindexpage". It should be noted that the navigation library defaults to using integers, starting with 0, if no key value is assigned.
There is a work around: Set the "key" value for the node to a string value.