Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.5.x-dev
-
[4.6] - Sprint 8
-
Ibexa Content
Description
Deleting product with variants leaves orphaned records in database.
Steps:
- Create Product Type with attribute (e.g. int) set as variant.
- Create product using this PT.
- Add some variants.
- Delete the product.
- Create another product with exactly the same name.
- Add variants with exactly the same values.
Actual result: Variants cannot be added, error occurs "Argument '$createStruct' is invalid: Product with code 'npt_3_1-1-1' already exists".
Expected result: Variants can be added.
Remarks: When deleting product orphan records are left in ibexa_product_specification table.