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

AlexisWilke’s picture

llorberb,

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

llorberb’s picture

Sorry for the delayed response.

The error seems to go away when I allowed the module to show both show and hide menu items.

AlexisWilke’s picture

Status: Active » Fixed

Hi 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

Status: Fixed » Closed (fixed)

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