[-] BO - fixed bug #PSCFV-6248 don't delete product when delete category and choose option to delete products
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user