Hi,
I noticed a Error notice in Menu settings page.
What are the steps required to reproduce the bug? :
1) Install Drupal 8.0-alpha8+76-dev
2) Visit "admin/structure/menu/settings"
What behavior were you expecting? :
No warnings or error notices on this page.
What happened instead?
Getting error notice "Notice: Undefined index: main in Drupal\menu\MenuSettingsForm->buildForm() (line 54 of core\modules\menu\lib\Drupal\menu\MenuSettingsForm.php). "
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | MenuSettingsForm.php-2181469-comment1.patch | 1.37 KB | karthikkumarbodu |
Comments
Comment #1
swentel commentedI can't reproduce this with latest HEAD - that line doesn't even contain anything anymore that would trigger that error.
Comment #2
karthikkumarbodu commentedHey Swentel, I was able to report the above error notice in the previous Dev release. We can reproduce the error only when there are no menus in the "Menus" administration page, this is never going to happen as we get five menus by default after the installation. I am providing a simple patch to suppress the error in such conditions.
Comment #3
swentel commentedMmm right, like that, good catch
Comment #4
jhedstromAfter #1869476: Convert global menus (primary links, secondary links) into blocks, this might no longer be an issue.
Comment #5
Vikas.Kumar commentedHi there, i checked that this "core\modules\menu" does not exist at latest Drupal dev 8.0.x. So it should need to be close.