// Some bugs fix

This commit is contained in:
dSevere
2011-12-02 16:22:45 +00:00
parent fc8e67fe37
commit 9ad6e0bfd4
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;
}