// optimization to Product constructor (stock data is not loaded by default)
This commit is contained in:
+2
-1
@@ -78,7 +78,8 @@ class PackCore extends Product
|
||||
$arrayResult = array();
|
||||
foreach ($result AS $row)
|
||||
{
|
||||
$p = new Product($row['id_product_item'], false, (int)($id_lang));
|
||||
$p = new Product($row['id_product_item'], false, $id_lang);
|
||||
$p->loadStockData();
|
||||
$p->pack_quantity = $row['quantity'];
|
||||
$arrayResult[] = $p;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user