Steps to reproduce
Steps to reproduce
- Using the Commerce Starter Kit sample site, go to Commerce Manager and create a second catalog called "Second Catalog".
- Go back to the first catalog "Departmental Catalog" and select a category that contains one or more nested categories. I chose "Departmental Catalog > Departments > Automotive". This contains subcategories like Accessories, Performance, ReplacementParts, and Tools.
- Clone the "Automotive" category for the purposes of moving. This operation should take a while since the category is sizeable.
- Move the cloned "Automotive" category to the second catalog.
- Examine the moved "Automotive" category.
Expected:
In the moved category, the
subcategories and nested contents should be visible.Actual:
In the moved category, the subcategories and nested contents are not visible.
Notes:
Only products and skus immediately under the moved category are visible.
For products and skus in subcategories under the "Automotive" category, we noticed that the [CatalogId] had not been updated properly for records in the [CatalogEntry] table.
For subcategories under the "Automotive" category, we noticed that the [CatalogId] had not been updated properly for records in the [CatalogNode] table whose [ParentNodeId] field referred to the id of the "Automotive" catalog node.
Deleting the moved category from Commerce Manager can have the effect of orphaning the subcategories and nested contents whose [CatalogId] field were not properly updated.
If you move the moved "Automotive" category from the new Catalog back to the original Catalog, all of the nested subcategories and content becomes visible again.