Closed (fixed)
Project:
Menu Per Role
Version:
6.x-1.10
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jul 2011 at 03:09 UTC
Updated:
31 Aug 2011 at 16:11 UTC
I am getting the following error when I add a link, but the module is still working as expected.
warning: Invalid argument supplied for foreach() in ...\sites\all\modules\menu_per_role\menu_per_role.admin.inc on line 131.
Comments
Comment #1
AlexisWilke commentedllorberb,
Can you please confirm that you hid the "Show menu item only to selected roles" field set when editing a node?
I added that option recently and I guess I need to add a couple more tests to make sure it is checked properly in the submit.
Thank you.
Alexis
Comment #2
llorberb commentedSorry for the delayed response.
The error seems to go away when I allowed the module to show both show and hide menu items.
Comment #3
AlexisWilke commentedHi llorberb,
The problem was that I did not check the flag saying whether the hide/show were displayed in the submit function.
Thank you for your last report!
Alexis Wilke
See: http://drupalcode.org/project/menu_per_role.git/commit/3a122dc