-
Notifications
You must be signed in to change notification settings - Fork 9.4k
fixed negative children_count after deleting categories #28044
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
fixed negative children_count after deleting categories #28044
Conversation
Hi @ProkopovVitaliy. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
I will take care of test coverage. |
Hi @VladimirZaets, thank you for the review. |
@magento run Static Tests |
@magento run Unit Tests |
app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Category/AggregateCountTest.php
Outdated
Show resolved
Hide resolved
Co-authored-by: Dmytro Cheshun <[email protected]>
@magento run all tests |
Hi @dmytro-ch, thank you for the review. |
Notice: QA not applicable |
Hi @ProkopovVitaliy, thank you for your contribution! |
Description (*)
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
1.Log in into admin backend
2.Navigate to Catalog -> Categories
3.Click "Add Subcategory"
4.Fill category name with "Parent 1", Save
5.Click "Add Subcategory"
6.Fill category name with "Child 1", Save
7.Click "Add Subcategory"
8.Fill category name with "Child 2", Save
9.Click "Add Subcategory"
10.Fill category name with "Child 3", Save. At this point this category should have level = 5
11.Click on "Child 1" category
12.Delete category
Questions or comments
Contribution checklist (*)