From: Sudha Bisht Date: Fri, 19 Jun 2015 07:01:21 +0000 (+0530) Subject: Fix for financial_type_id not returned on Contribution get X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f516358acbfe8c51bae521d9c75ca8e7616ccb62;p=civicrm-core.git Fix for financial_type_id not returned on Contribution get --- diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index 4dd1cefc42..29d9641c60 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -217,6 +217,11 @@ class CRM_Contribute_BAO_Query { $query->_select['contribution_campaign_title'] = "civicrm_campaign.title as contribution_campaign_title"; $query->_element['contribution_campaign_title'] = $query->_tables['civicrm_campaign'] = 1; } + //CRM-16116: get financial_type_id + if (!empty($query->_returnProperties['financial_type_id'])) { + $query->_select['financial_type_id'] = "civicrm_contribution.financial_type_id as financial_type_id"; + $query->_element['financial_type_id'] = $query->_tables['civicrm_contribution'] = 1; + } // LCD 716 END }