Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu item aliases changed even if there is no need #35

Open
mahagr opened this issue Apr 12, 2012 · 0 comments
Open

Menu item aliases changed even if there is no need #35

mahagr opened this issue Apr 12, 2012 · 0 comments

Comments

@mahagr
Copy link
Contributor

mahagr commented Apr 12, 2012

Menu item aliases are being changed, even if Joomla has no issues or conflicts. This happens when there are 2 menu items with the same aliases but having different parent.

Quickest fix would change the array to be multi-dimensional (without looking into the code):

$aliases[$item->parent] = $item->alias->id;

And by checking

if (in_array($aliases[$item->parent])) changeAlias();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant