If I add a icon to a menu item that comes from a view, the icons disappears after clearing the cache. The problem is, that the config key in fontawesome_menu_icons_form_menu_link_edit_submit() and fontawesome_menu_icons_menu_links_discovered_alter() is different.

The config_key in the submit function is in my example: views_view:views_offer_search_page_4
And in the discover function: views_offer_search_page_4.

Since the config is saved based on the config_key in the submit function, the icon for the view menu item is not found in the discover function.

CommentFileSizeAuthor
#2 fixed_different_config_key-2883060-2.patch774 bytescbeier

Comments

cbeier created an issue. See original summary.

cbeier’s picture

StatusFileSize
new774 bytes

Patch attached, so that the config_keys now are the same.

cbeier’s picture

Status: Active » Needs review

  • lonalore committed a4480c5 on 8.x-1.x authored by cbeier
    Issue #2883060 by cbeier: Icons not correct saved/loaded if the menu...
lonalore’s picture

Status: Needs review » Fixed

Thank you! :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.