// 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:
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user