// Fix tax rules group product and carriers deletion

This commit is contained in:
rGaillard
2012-03-08 13:36:45 +00:00
parent c12100e9e0
commit 8c91e49e0d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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))