// optimization to Product constructor (stock data is not loaded by default)

This commit is contained in:
tDidierjean
2012-01-03 13:40:50 +00:00
parent 21e4a2fb89
commit 93e2f8b5bf
5 changed files with 32 additions and 6 deletions
+2 -1
View File
@@ -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;
}