-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Correct child node load when multiple calls to CategoryManagement::ge… #18705
Conversation
Hi @pmclain. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
…tTree Tree::getNode currently loads nodes using a resource singleton. The tree resource's parent class contains the property _loaded and only loads child nodes when _loaded is false. This behavior means only the first call to CategoryManagement::getTree in a request returns child nodes. Fixes magento#17297
Hi @sidolov, thank you for the review. |
Hi @pmclain, thank you for your contribution! |
we have issue after update to 2.3.2 by call rest api working solution: change: |
Thanks @ivan-vetoskin-racechip. This fixed the empty structures returned from the CategoryManagementInterface. |
…tTree
Description (*)
Tree::getNode currently loads nodes using a resource singleton. The tree
resource's parent class contains the property _loaded and only loads child
nodes when _loaded is false. This behavior means only the first call to
CategoryManagement::getTree in a request returns child nodes.
Fixed Issues (if relevant)
Manual testing scenarios (*)
\Magento\Catalog\Model\CategoryManagement
CategoryManagement->getTree(1)->getChildrenData()
multiple timesContribution checklist (*)