Micon Menu breaks Simple Mega Menu (removes reference on node save)

Created on 21 July 2022, almost 3 years ago
Updated 30 April 2025, 1 day ago

Problem/Motivation

Using micon_menu in combination with https://www.drupal.org/project/simple_megamenu caused the following issue: #3298743: Incompatible with micon_menu: Removes MegaMenu reference on node save

The reason is that both modules use menu_link's ->option value:

$menu_link_options = $menu_link->link->first()->options;

micon_menu replaces a lot of the core logic. When saving a node with a menu item that refers to a mega menu, the reference is deleted on node save and the mega menu is no more referenced.

Steps to reproduce

Create a node with its menu item. No icon selection required.
Select a mega menu on that menu item by Structure > Menu > ...
Edit the node and save it. You don't have to set an icon, save is enough without any changes
See the selected mega menu is no more referenced / selected on the menu item.

Proposed resolution

Review the implementation in https://git.drupalcode.org/project/micon/-/blob/2.x/modules/micon_menu/m... and ensure it doesn't override other options.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

2.0

Component

micon_menu submodule

Created by

🇩🇪Germany Anybody Porta Westfalica

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.

  • 🇩🇪Germany Grevil

    We are not using simple mega menu anymore in new site installations! So maybe somebody else can fix it.

Production build 0.71.5 2024