// Warehouse: getWarehousesByProducId()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10151 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-11-15 18:25:45 +00:00
parent 8931216544
commit 0552cfb60a
+1 -1
View File
@@ -374,7 +374,7 @@ class WarehouseCore extends ObjectModel
return array();
$query = new DbQuery();
$query->select('w.id_warehouse, CONCAT(w.reference, " - ", w.name) as name');
$query->select('DISTINCT w.id_warehouse, CONCAT(w.reference, " - ", w.name) as name');
$query->from('warehouse w');
$query->leftJoin('stock s ON (s.id_warehouse = w.id_warehouse)');
if ($id_product)