// Some bugs fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10872 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -166,7 +166,9 @@ class ProductSupplierCore extends ObjectModel
|
||||
{
|
||||
$suppliers = new Collection('ProductSupplier');
|
||||
$suppliers->where('a.id_product = '.(int)$id_product);
|
||||
$suppliers->groupBy('a.id_supplier');
|
||||
|
||||
if ($group_by_supplier)
|
||||
$suppliers->groupBy('a.id_supplier');
|
||||
|
||||
return $suppliers;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user