// Add cache on products stock

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7966 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-08-09 14:50:48 +00:00
parent 6e46649631
commit f48b1ffc45
+1 -1
View File
@@ -2114,7 +2114,7 @@ class ProductCore extends ObjectModel
.$context->shop->sqlSharedStock();
$this->cacheStock[$id_product_attribute] = (int)Db::getInstance()->getValue($sql);
}
return $this->cacheStock[$id_product_attribute];
return self::$cacheStock[$this->id][$id_product_attribute];
}
/**