The contents of the description field which are set at: admin/structure/menu/item/xxx/edit are not being output to the "title" attribute of the menu link.

When menu items are created via node/add then Drupal outputs $node -> title as the title attribute. However, menu links created via the menu admin do not output anything to the title attribute.

Note that the contents of the description field are being successfully saved to the db and successfully retrieved by admin/structure/menu/item/xxx/edit.

Shai Gluskin
Content2zero

CommentFileSizeAuthor
#1 fix_menu_link_options.diff1.07 KBmooffie

Comments

mooffie’s picture

Status: Active » Needs review
StatusFileSize
new1.07 KB

Here's a patch.

The effect of the bug is somewhat wider than described above. Descriptions set in hook_menu() too are ignored. In fact, everything else stored in the 'options' parcel (which gets massaged into 'localized_options') gets ignored.

(As for a testcase, I'll later extend the one attached to another menu.inc issue.)

(Note: The Toolbar module too doesn't show menu-item descriptions. But its bug isn't related to this one. Whatever, since the toolbar's code is undergoing overhaul it's pointles to discuss this now.)

Shai’s picture

I applied this patch on a HEAD install of D7 from today. It installed cleanly but reported an offset of 8 lines.

The patch fixed the problem I had reported.

Go @mooffie!

Shai

MichaelCole’s picture

#1: fix_menu_link_options.diff queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, fix_menu_link_options.diff, failed testing.

dcam’s picture

Issue summary: View changes
Status: Needs work » Closed (duplicate)

This issue was fixed sometime in the past. The changes from #1 were made to D7 by some other patch.