// Fix tax rules group product and carriers deletion
This commit is contained in:
+1
-1
@@ -204,7 +204,7 @@ class CarrierCore extends ObjectModel
|
||||
if (!parent::delete())
|
||||
return false;
|
||||
return (Db::getInstance()->Execute('DELETE FROM '._DB_PREFIX_.'cart_rule_carrier WHERE id_carrier = '.(int)$this->id) &&
|
||||
$this->deleteTaxRulesGroup(true));
|
||||
$this->deleteTaxRulesGroup(Shop::getShops(true, null, true)));
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -682,7 +682,7 @@ class ProductCore extends ObjectModel
|
||||
!$this->deleteAccessories() ||
|
||||
!$this->deleteFromAccessories() ||
|
||||
!$this->deleteFromSupplier() ||
|
||||
!$this->deleteTaxRulesGroup(true))
|
||||
!$this->deleteTaxRulesGroup(Shop::getShops(true, null, true)))
|
||||
return false;
|
||||
|
||||
if ($id = ProductDownload::getIdFromIdProduct($this->id))
|
||||
|
||||
Reference in New Issue
Block a user