Open TangLiang opened 5 hours ago
The admin panel should give a warning about this, no?
Would it be better to not allow deletion of the attribute set if products are assigned to it? Or require the user to type something like “confirm deletion” into a box to proceed? Or maybe disable the affected products?
I believe it’s this way because I’m not sure reassigning the product to the default attribute set is possible since there could be required fields present in the default set that weren’t in the deleted set.
i think it's much better to reassign the product to default with basic attributes
Steps to reproduce (*)
1.Make a new attribute set 2.Assign attribute set to product 3.delete attribute set
Actual result (*)
The product gets deleted from the DB and everywhere.