[-] BO : cart rules are now cleaned when a component of a product rule (like a product, a category, a supplier...) is deleted

This commit is contained in:
dMetzger
2012-07-24 13:11:56 +00:00
parent f4fa8bd1b1
commit f1270e3ab0
6 changed files with 60 additions and 1 deletions
+3
View File
@@ -117,7 +117,10 @@ class ManufacturerCore extends ObjectModel
return false;
if (parent::delete())
{
CartRule::cleanProductRuleIntegrity('manufacturers', $this->id);
return $this->deleteImage();
}
}
/**