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 wasn't sure if this was a code, user interface or miscellaneous component!)
Whenever a page is edited, the primary link menu title attribute gets reset (nulled) when the edits are saved. Disabling the Menu Attributes Module stops this behavior.
After a page edit, you must manually reset the menu description in the Site building | menus | primary links page.
It would be nice if the menu description (title attribute was left alone by the Menu Attributes Module.
Comment | File | Size | Author |
---|---|---|---|
#5 | menu_attributes.zip | 11.75 KB | builderShawn |
#4 | menu_attributes.module.534472.patch | 4.69 KB | obsidiandesign |
Comments
Comment #1
Schoonzie CreditAttribution: Schoonzie commentedThanks for pointing this out. I will have a look for the cause and release an update soon.
Comment #2
itsnotme CreditAttribution: itsnotme commentedAny update in the making...? *inquiring mind*
Comment #3
obsidiandesign CreditAttribution: obsidiandesign commentedThe issue is that the Menu Attributes module overwrites the $form['menu']['options'] array, which contains the description (['options']['attributes']['title']). I have a pseudo-patch, but I'm trying to follow some of the logic that the module is using and how FAPI handles it. I'll post later, it's too late here to finish it.
Bryan O'Shea
Obsidian Design
Comment #4
obsidiandesign CreditAttribution: obsidiandesign commentedAttaching patch, may need work, but appears to make things work correctly on my end.
Bryan O'Shea
Obsidian Design
Comment #5
builderShawn CreditAttribution: builderShawn commentedPossible fix would be to add a Title/Description edit area to the module. This would allow the user to change the title/description when creating a page or editing the page, instead of having to edit this area from the menu.
Comment #6
Dave ReidThis should be working as expected now with the backported code form D7.
Comment #8
dgastudio CreditAttribution: dgastudio commentedproblem still active in d7.
Comment #9
joelpittetClosing this as fixed as it's been a long time and nobody else has reported this problem.
@kervi if this issue still exists in 7.x dev please re-open. Just grooming the queue.