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.
The changes made in #1941080: Menu translation on node form is broken causes a bunch of notices on the node edit form, when using translation sets for menu translation.
Notice: Undefined index: link_title in menu_form_node_form_alter() (line 645 of \modules\menu\menu.module).
Notice: Undefined index: mlid in menu_form_node_form_alter() (line 657 of \modules\menu\menu.module).
Patch coming soon.
Comment | File | Size | Author |
---|---|---|---|
#2 | et-menu-notices-1992588-2.patch | 1.37 KB | bforchhammer |
#1 | et-menu-notices-1992588-1.patch | 767 bytes | bforchhammer |
Comments
Comment #1
bforchhammer CreditAttribution: bforchhammer commentedThis should do it.
(Basically, we should only update
$node->menu
if it actually contains a menu item; currently code was also updating it when it was actuallyNULL
).Comment #2
bforchhammer CreditAttribution: bforchhammer commentedHere's another notice:
This one appears when you try to localize a menu item which doesn't have a description set in the original language.
Comment #3
bforchhammer CreditAttribution: bforchhammer commentedCommitted.