Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.21
-
Fix Version/s: 4.7.25
-
Component/s: None
-
Labels:None
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
Description
The count of contributions that appears on the "Contributions" tab when viewing a contact currently doesn't count any contributions where the contribution (or an associated line item) has a disabled Financial Type.
This is because the function called, getContributionCount, limits the count to contributions/line items with a Financial Type returned by `CRM_Financial_BAO_FinancialType::getAvailableFinancialTypes`, which itself calls [the Financial Type psuedoconstant|https://github.com/civicrm/civicrm-core/blob/master/CRM/Contribute/PseudoConstant.php#L108,] which limits to `is_active` = 1.