You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Delete product type if there are no active or draft products associated with it.
Actual Behaviour:
I don’t have any products in the product type in the admin, yet it doesn’t allow me to delete the product type. It appears in the database with the given product type in a deleted state.
Steps To Reproduce:
I created a new Product Type (Standard)
i maked a new Product with this Product Type
I deleted this new Product.
If i try to delete this new Product Tpye (Standard) i get laravel inter Server Error Message, Because in database store this deleted Product with exist Product Type foreign Key.
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (lunar.lunar_products, CONSTRAINT lunar_products_product_type_id_foreign FOREIGN KEY (product_type_id) REFERENCES lunar_product_types (id)) (Connection: mysql, SQL: delete from lunar_product_types where id = 4)
Expected Behaviour:
Delete product type if there are no active or draft products associated with it.
Actual Behaviour:
I don’t have any products in the product type in the admin, yet it doesn’t allow me to delete the product type. It appears in the database with the given product type in a deleted state.
Steps To Reproduce:
I deleted this new Product.
If i try to delete this new Product Tpye (Standard) i get laravel inter Server Error Message, Because in database store this deleted Product with exist Product Type foreign Key.
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (
lunar
.lunar_products
, CONSTRAINTlunar_products_product_type_id_foreign
FOREIGN KEY (product_type_id
) REFERENCESlunar_product_types
(id
)) (Connection: mysql, SQL: delete fromlunar_product_types
whereid
= 4)5 NULL 5 draft {"name": {"value": {"en": "", "hu": "Teszt123"}, "... 2025-01-23 13:46:26 2025-01-23 13:49:34 2025-01-23 13:49:34
The text was updated successfully, but these errors were encountered: