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.
Comment | File | Size | Author |
---|---|---|---|
features_menu_link_load.patch | 1022 bytes | Angry Dan | |
Comments
Comment #1
Angry Dan CreditAttribution: Angry Dan commentedComment #2
FMB CreditAttribution: FMB commentedI 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!
Comment #3
hefox CreditAttribution: hefox commentedthanks
Comment #4
FMB CreditAttribution: FMB commentedHere's the corresponding commit. Thanks again everyone!
Comment #6
FMB CreditAttribution: FMB commentedIncluded in Release 7.x-2.1.