Closed
Description
Preconditions
- Install clean Magento 2.3.4
Steps to reproduce
-
Log in into admin backend
-
Navigate to Catalog -> Categories
-
Click "Add Subcategory"
-
Fill category name with "Parent 1", Save
-
Click "Add Subcategory"
-
Fill category name with "Child 1", Save
-
Click "Add Subcategory"
-
Fill category name with "Child 2", Save
-
Click "Add Subcategory"
-
Fill category name with "Child 3", Save. At this point this category should have level = 5
-
Click on "Child 1" category
-
Delete category
Expected result
- Categories are deleted and children_count for remaining categories are valid eg. catalog_category_entity look as follows:
1 3 0 2020-02-05 18:38:54 2020-04-24 10:50:38 1 0 0 2
2 3 1 2020-02-05 18:38:54 2020-04-24 10:50:38 1/2 1 1 1
15 3 2 2020-04-24 10:49:35 2020-04-24 10:50:38 1/2/15 1 2 0
Actual result
- Categories are deleted but children_count for remaining categories are negative - catalog_category_entity look as follows:
1 3 0 2020-02-05 18:38:54 2020-04-24 10:50:38 1 0 0 -1
2 3 1 2020-02-05 18:38:54 2020-04-24 10:50:38 1/2 1 1 -2
15 3 2 2020-04-24 10:49:35 2020-04-24 10:50:38 1/2/15 1 2 -3
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentMay be fixed according to the position in the backlog.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchAffects non-critical data or functionality and does not force users to employ a workaround.Has been reviewed and prioritized during Triage with Product Managers
Type
Projects
Status
Done