// Stock Management : Show stock interfaces only if the option is active in the configuration + debug

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10554 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dSevere
2011-11-23 16:07:57 +00:00
parent 5735102138
commit 2d238bbac7
5 changed files with 28 additions and 26 deletions
+2 -2
View File
@@ -944,9 +944,9 @@ class ProductCore extends ObjectModel
return false;
//Try to set available quantitiy if product quantity not depend on stock
$depend_on_stock = StockAvailable::dependsOnStock($this->id);
$depends_on_stock = StockAvailable::dependsOnStock($this->id);
if (!$depend_on_stock)
if (!$depends_on_stock)
if (!StockAvailable::updateQuantity($this->id, $id_product_attribute, $quantity))
{
$stock_available = new StockAvailable();