You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I get an error: "No menu items found! Confirm that such a menu exists and that it has menu items." if items are not present. This is caused by the line 1366:
Hello, @kongondo!
I use the module in this way: I'm creating a site with possibility of creating blank menu without items.
On these lines I'm trying to get menu items:
Then I get an error: "No menu items found! Confirm that such a menu exists and that it has menu items." if items are not present. This is caused by the line 1366:
https://github.com/kongondo/MenuBuilder/blob/main/MarkupMenuBuilder.module#L1366
I tried to fix it manually using the fact that the menu is a page and menu items are being stored in menu_items variable:
However, it seems to be only a workaround. Am I using module correctly? If no, how can I use it to avoid such an error without adding items?
If it is not possible, I suggest the following fix:
Here https://github.com/kongondo/MenuBuilder/blob/main/MarkupMenuBuilder.module#L1366 return can be replaced from $this->throwError() to [] or array().
The text was updated successfully, but these errors were encountered: