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

[NodeBundle] Duplicate pages in admin menu #3476

Open
dannyvw opened this issue Nov 22, 2024 · 0 comments
Open

[NodeBundle] Duplicate pages in admin menu #3476

dannyvw opened this issue Nov 22, 2024 · 0 comments

Comments

@dannyvw
Copy link
Contributor

dannyvw commented Nov 22, 2024

We have a "multi_lang" configuration with multiple locales (nl/en/de). If the page is not translated then it will show the page multiple times in the admin menu. This method https://github.com/Kunstmaan/KunstmaanBundlesCMS/blob/7.x/src/Kunstmaan/NodeBundle/Repository/NodeRepository.php#L262 returns the same node multiple times.

It can also be solved to use $this->treeNodes[$parent_id][$nodeInfo['id']] = $nodeInfo; on this line https://github.com/Kunstmaan/KunstmaanBundlesCMS/blob/7.x/src/Kunstmaan/NodeBundle/Helper/Menu/PageMenuAdaptor.php#L154

Image

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