// 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:
dSevere
2011-12-02 16:22:45 +00:00
parent 43648c6ca2
commit 10f1a846b7
5 changed files with 10 additions and 5 deletions
+3 -1
View File
@@ -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;
}