After duplicating a product, an old deleted customization field is copied to the new product.
The deleted customization field should not be copied to the new product
Steps to reproduce the behavior:
Screenshots
https://drive.google.com/file/d/11VFXdx2VUew_SWDYRi0WDj8FvtERf_Sd/view
Assign this to me.
@Arman-Hosseini
You should add field is_deleted to SELECT https://github.com/PrestaShop/PrestaShop/blob/1.7.6.x/classes/Product.php#L4569
You have to exclude results with is_deleted = 1 here https://github.com/PrestaShop/PrestaShop/blob/1.7.6.x/classes/Product.php#L4624
if ($customization_field['is_deleted']) {
continue;
}
Find the best way as you like ;)
Hi @Matt75 ,
Honestly, I'm involved in the discussion here: https://github.com/PrestaShop/PrestaShop/commit/661583e73516cc3118abb27e5e12a296a68658a0#commitcomment-37837650
But thanks for your suggestions :)
Hi @Arman-Hosseini, hope everything's fine for you; do you wish to stay assigned to this issue or should I de-assigned you? You let me know, thanks a lot!
Hi @LouiseBonnard, Hope you are fine.
Sorry, I can't going forward this issue now.