Closed (fixed)
Project:
Menu Link Modal
Version:
8.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2017 at 10:21 UTC
Updated:
24 Nov 2018 at 09:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
narendrarComment #3
solide-echt commentedAttached is a patch that, at least in my case, fixed the problem. The ternary operator produces an empty array if the menu item has no classes yet (which I believe is true unless some other module adds classes too); I've added a check to manually add the ['class'] array.
Comment #4
miteshmapDefine class attributes as array if it's not set.
Comment #6
miteshmapComment #8
dj12djdjs commentedIt appears that I get this notice as well:
Notice: Undefined index: class in menu_link_modal_set_attributes() (line 104 in /modules/menu_link_modal/menu_link_modal.module)
Comment #9
dj12djdjs commentedThis issue was fixed with the latest update.