Steps to reproduce
on admin/structure/menu/settings set Source for the Main links to "No Main links"
Behavior expected
No error messages
Complete description (get rid of the ...(currently )...?
Current behavior
Because the Main links are empty it results in an incomplete description - http://drupal.org/files/menumainlinks_bug.png
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | menu_configure_index-983746-NO.patch | 1.56 KB | agentrickard |
| #8 | 983746-menu.admin_.patch | 1.21 KB | jcarlson34 |
| No Main links selected | 34.88 KB | sign | |
| Main links selected | 35.16 KB | sign |
Comments
Comment #1
sign commentedforgot to add that the notice is:
"Notice: Undefined index: in menu_configure() (line 682 of /sites/d7cvs/www/modules/menu/menu.admin.inc)."
Comment #2
jcarlson34 commentedI see the same message upon navigating to the menu section as well.
Comment #3
yoroy commentedSubscribe, same here.
Comment #4
jcarlson34 commentedHere's the code from line 682:
The %menu variable from the array is coming back without a value, leading to the undefined index warning.
The simple fix would be to just delete the %menu stuff like this:
Comment #5
davidneedhamSame issue here.
Comment #6
davidneedhamFor what it's worth, a quick fix is disabling the main and secondary menus from the theme settings page (/admin/appearance/settings/yourdefaultthemename). That seems to work without any problems.
Comment #7
hjmichael commentedHello,
I have the same issue on a fresh D7 install using the Marinelli theme.
Comment #8
jcarlson34 commentedOk I put together a patch for #4.
Comment #10
agentrickardFirst Git patch!
Comment #11
swentel commentedBot is happy and I want my 2 beers!
Comment #12
jcarlson34 commentedNice work agentrickard. Thanks for fixing this!
Comment #13
agentrickard@jcarlson34
I used it as an easy excuse to test my Git skillz. (Plus I have #1078266: Undefined index: in domain_conf_domainbatch() in my queue, which is a direct result of copy/paste of this code. :-)
Comment #14
dawehnerComment #15
alexanderpas commentedI don't think is the best message to show, but it is good enough. (also Subscribe.)
Comment #16
webchickI actually ended up committing a slightly different fix in a separate issue: #1021064: No Main Links causes error message in form description to set Secondary Links