I think this is probably related to the excellent work done in #927566: Add link title to menu link identifiers to make them more unique..

Features_menu_link_load() is now helpful enough to include an identifier, which it stores on the menu_link itself as a way of later identifying menu links as being the same. Unfortunately there is a tiny bug in the logic, which makes it less helpful than it could be, and additionally means that menu links that should be created are not.

Towards the end of the function, if an exact match hasn't been found it will try to match based on either identifier or title, which is fine, except that it'll happily match on the title of other links with an identifier. Instead, if it finds other links with an identifier it should ignore them - as they are clearly managed by a different feature component.

Otherwise if you have two menu links with the same title, there's a good chance that the second one won't ever get created (that's exactly what's happening to me).

See attached patch.

CommentFileSizeAuthor
features_menu_link_load.patch1022 bytesAngry Dan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Angry Dan’s picture

FMB’s picture

I had the exact same problem (when two menu links have the same title, one of them is not created at deployment, and the feature won't revert), and your patch fixed it. Thank you so much!

hefox’s picture

Status: Needs review » Fixed

thanks

FMB’s picture

Here's the corresponding commit. Thanks again everyone!

Status: Fixed » Closed (fixed)

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

FMB’s picture

Included in Release 7.x-2.1.