minor fix for mode in Search
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 23 Jun 2015 13:04:02 +0000 (18:34 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Tue, 23 Jun 2015 13:04:02 +0000 (18:34 +0530)
CRM/Contact/BAO/Query.php

index 5c5a990f3fd8f1ffcb7eb5ec73549b879ade4c6e..a418fe63212f285d6e33ca0673a6a6535e8e5cdd 100644 (file)
@@ -4781,7 +4781,7 @@ SELECT COUNT( conts.total_amount ) as total_count,
     }
 
     $orderBy = 'ORDER BY civicrm_contribution_total_amount_count DESC';
-    $groupBy = 'GROUP BY civicrm_contribution.total_amount';
+    $groupBy = 'GROUP BY currency, civicrm_contribution.total_amount';
     $modeSQL = "$select, conts.civicrm_contribution_total_amount_count as civicrm_contribution_total_amount_count FROM ($innerQuery
     $groupBy $orderBy) as conts
     GROUP BY currency";