Default menu item selection logic is broken

Created on 13 December 2012, about 12 years ago
Updated 5 February 2023, about 2 years ago

In submenutree_node_view() the code attempts to "give priority to the default menu" but it never works, because $menu_name always has a colon in it, eg main-menu:0, and that is not the name of a menu. Attached patch resolves this issue.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024