Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21026

Contribution count on contact tabs excludes contributions with disabled financial types

    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.

        Attachments

          Activity

            People

            • Assignee:
              seamuslee Seamus Lee
              Reporter:
              effy Effy Elden
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: