// 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:
@@ -374,7 +374,7 @@ class WarehouseCore extends ObjectModel
|
|||||||
return array();
|
return array();
|
||||||
|
|
||||||
$query = new DbQuery();
|
$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->from('warehouse w');
|
||||||
$query->leftJoin('stock s ON (s.id_warehouse = w.id_warehouse)');
|
$query->leftJoin('stock s ON (s.id_warehouse = w.id_warehouse)');
|
||||||
if ($id_product)
|
if ($id_product)
|
||||||
|
|||||||
Reference in New Issue
Block a user