Closed (fixed)
Project:
Features
Version:
7.x-2.x-dev
Component:
Menu
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2014 at 18:33 UTC
Updated:
1 Nov 2020 at 03:51 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #1
yesct commentedadding image
These links are ones that come from views.
--
I can try to make steps to reproduce on a blank site also.
Comment #2
claudiu.cristea@YesCT, I'm facing the same issue. Wonder how you fixed that.
Comment #3
mustanggb commentedIs this related to #927566: Add link title to menu link identifiers to make them more unique.?
Comment #4
claudiu.cristeaThis patch should fix the issue.
@MustangGB, no, it's not the same.
Comment #5
rclemings commentedSame problem here, patch worked perfectly. After two+ years, ready for commit?
Comment #7
joseph.olstadthanks Claudiu for this patch, great stuff.
and thanks to rclemings for the review.
and thanks to everyone else.
Comment #9
donquixote commentedI don't see how this patch/commit would solve the problem described in the issue summary.
With or without the patch, I was not able to reproduce the original problem.
The main change seems to be this:
$menu_link['options']['identifier']was updated each time a modified menu link was exported.However, the generated feature still contains the updated identifier.
Bugs / Misbehavior before this change
Without the commit, I did see the following misbehavior:
Steps:
drush fu -y my_ft_menu). Commit in git.drush fr -y my_ft_menu).Expected:
Actual:
The reason is that the stored link now has a different identifier than the exported link.
The commit fixes this misbehavior in some cases, but not all.
Bugs / Misbehavior after this change
Since the commit, I see the following misbehavior:
Steps:
drush fu -y my_ft_menu). Commit in git.drush fu -y my_ft_menu). Show diff.Expected:
Actual:
Conclusion: Revert this
This commit is not yet part of any stable release.
Given the choice between a known existing bug and a newly introduced regression, I would choose the former, as the path of least surprise.
We should revert this to minimize disruption in the upcoming release.
Future: How to do this properly?
We need to make a choice:
Should the "identifier" remain fixed, once it was created?
Or should it be updated each time the menu link data (title, path) changes?
I would say it is pointless now: Everybody who needs a proper menu links export solution should use Features Menu UUID instead.
Comment #10
donquixote commentedFollow-up: #3162809: Revert change on menu_links identifier logic from #2385853
Comment #11
donquixote commentedComment #12
donquixote commentedComment #13
donquixote commented