[-] Core : Fix PSCFV-2898 delete stock_available after combination deletion
This commit is contained in:
1 parent
604dc29194
commit
40630be3c4
1 file changed
+3
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user