make it compatible with only 5.7+
[civicrm-core.git] / CRM / Pledge / Selector / Search.php
index 0a139d3f3072dd977a445fa44a204f9c2cbff344..5882970c04288a325efdf854ca82bc695f415454 100644 (file)
@@ -169,7 +169,7 @@ class CRM_Pledge_Selector_Search extends CRM_Core_Selector_Base {
     );
 
     $this->_query->_distinctComponentClause = "civicrm_pledge.id";
-    $this->_query->_groupByComponentClause = " GROUP BY civicrm_pledge.id, civicrm_pledge.financial_type_id ";
+    $this->_query->_groupByComponentClause = " GROUP BY civicrm_pledge.id ";
   }
 
   /**