// Fix Product->setStock()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8018 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-1
@@ -2109,7 +2109,7 @@ class ProductCore extends ObjectModel
|
|||||||
if (!$context)
|
if (!$context)
|
||||||
$context = Context::getContext();
|
$context = Context::getContext();
|
||||||
|
|
||||||
$id_shop = $shop->getID(true);
|
$id_shop = $context->shop->getID(true);
|
||||||
if (!isset(self::$cacheStock[$this->id][$id_product_attribute]))
|
if (!isset(self::$cacheStock[$this->id][$id_product_attribute]))
|
||||||
{
|
{
|
||||||
$sql = 'SELECT quantity
|
$sql = 'SELECT quantity
|
||||||
|
|||||||
Reference in New Issue
Block a user