8000 Don't add the same page multiple times in `Pimcore\Navigation\Container::findAllBy()` by jdreesen · Pull Request #11147 · pimcore/pimcore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Don't add the same page multiple times in Pimcore\Navigation\Container::findAllBy() #11147

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

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

jdreesen
Copy link
Contributor
@jdreesen jdreesen commented Jan 7, 2022

If the page property is an array, and we iterate over it, we should skip the rest when we find a match. Otherwise, the same page may be added twice to the result array.

@dvesh3 dvesh3 added the Bug label Feb 1, 2022
@dvesh3 dvesh3 added this to the 10.2.10 milestone Feb 1, 2022
@dvesh3 dvesh3 merged commit 328a535 into pimcore:10.2 Feb 2, 2022
@jdreesen jdreesen deleted the fix-navigation-container-findAllBy branch February 2, 2022 13:23
@dvesh3
Copy link
Contributor
dvesh3 commented Feb 2, 2022

@jdreesen Agree with your point. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0