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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16548 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-07-24 13:11:56 +00:00
parent 412cae1d51
commit 096bc90802
6 changed files with 60 additions and 1 deletions
+3
View File
@@ -355,7 +355,10 @@ class SupplierCore extends ObjectModel
public function delete()
{
if (parent::delete())
{
CartRule::cleanProductRuleIntegrity('suppliers', $this->id);
return $this->deleteImage();
}
}
/**