Merge pull request #14118 from eileenmcnaughton/no_fin_item
[civicrm-core.git] / CRM / Contribute / BAO / Query.php
index b70e3392b0da2aea2891ab1be6d2675a2de0df4c..56e688cf067c6cac2879732619a69388a36e603b 100644 (file)
@@ -489,8 +489,6 @@ class CRM_Contribute_BAO_Query extends CRM_Core_BAO_Query {
       default:
         //all other elements are handle in this case
         $fldName = substr($name, 13);
-        CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes($financialTypes);
-        $query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("civicrm_contribution.financial_type_id", 'IN', array_keys($financialTypes), 'String');
         if (!isset($fields[$fldName])) {
           // CRM-12597
           CRM_Core_Session::setStatus(ts(