Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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