From eabbff3cd33c2932aee6132fc9efb1f475e942d9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 10 Dec 2013 18:04:25 +0100 Subject: [PATCH] Fix: We should not load stock details at each product fetch --- htdocs/product/class/product.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 40b6a2cfdd0..aba63503731 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -1347,7 +1347,8 @@ class Product extends CommonObject } } - $res=$this->load_stock(); + // We should not load stock at each fetch + //$res=$this->load_stock(); return $res; }