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

This commit is contained in:
vAugagneur committed 2013-01-24 18:51:09 +01:00
1 parent dfad6d21a3
commit 8cedf1c43a
1 file changed
+1 -1
@@ -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)