[-] BO - fixed bug #PSCFV-6248 don't delete product when delete category and choose option to delete products

This commit is contained in:
vAugagneur
2013-01-24 18:51:09 +01:00
parent fa3faf5369
commit 578139a462
@@ -622,7 +622,7 @@ class AdminCategoriesControllerCore extends AdminController
foreach ($fatherless_products as $id_poor_product) foreach ($fatherless_products as $id_poor_product)
{ {
$poor_product = new Product((int)$id_poor_product); $poor_product = new Product((int)$id_poor_product['id_product']);
if (Validate::isLoadedObject($poor_product)) if (Validate::isLoadedObject($poor_product))
{ {
if ($this->remove_products || $id_parent == 0) if ($this->remove_products || $id_parent == 0)