[-] Core : Fix PSCFV-2898 delete stock_available after combination deletion

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16403 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard committed 2012-07-13 08:52:42 +00:00
1 parent c7fe97d5d3
commit d29a1efd19
1 file changed
+3
+3
View File
@@ -102,6 +102,9 @@ class CombinationCore extends ObjectModel
if (!parent::delete()) if (!parent::delete())
return false; return false;
// Removes the product from StockAvailable, for the current shop
StockAvailable::removeProductFromStockAvailable((int)$this->id_product, (int)$this->id);
if (!$this->hasMultishopEntries() && !$this->deleteAssociations()) if (!$this->hasMultishopEntries() && !$this->deleteAssociations())
return false; return false;
return true; return true;