There is a simple bug in menu_tree_output() that accidentally resets the 'localized_options' array before it gets to the l() function. This currently prevents all title attributes, query arrays, etc from rendering in the resulting menu links.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

good catch.

webchick’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests

Can we get a test for this?

carlos8f’s picture

Status: Needs work » Needs review
FileSize
2.13 KB

Added a test, which tests for the title attribute and query string on a rendered menu link. Verified that the test fails on HEAD, but passes with the fix.

Status: Needs review » Needs work

The last submitted patch failed testing.

carlos8f’s picture

Status: Needs work » Needs review
FileSize
2.13 KB

#3 passed in my environment. Tweaking to see if this passes the testbot.

Status: Needs review » Needs work

The last submitted patch failed testing.

carlos8f’s picture

Status: Needs work » Needs review
FileSize
2.13 KB

I think the fail happened because testbot's simpletest must have clean URL's off, whereas my simpletest has them on.

grndlvl’s picture

Status: Needs review » Reviewed & tested by the community

Looks good.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Excellent. Thanks much, carlos!

Committed to HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -Needs tests

Automatically closed -- issue fixed for 2 weeks with no activity.