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

Not all Contribution Statuses are usable

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 4.4.3
    • Fix Version/s: 4.5
    • Component/s: CiviContribute, CiviCRM API
    • Labels:
      None

      Description

      The default contribution Status option group as listed here: http://drupal.demo.civicrm.org/civicrm/admin/optionValue?gid=11&reset=1

      Using the API it is not possible to use all of the default contribution states due to some code in CRM_Contribute_BAO_Contribution:: checkStatusValidation

      For example, I want to change a contribution which was created using the API with initial state of "In Progress" to state "Completed".

      This fails due to the code in checkStatusValidation only allowing for state transitions between the states which are hard coded in this function. This hard coded list doesn't include all of the states that are included by default in the option group listed above which as a minimum it probably should.

      As a more general point, hard coding these state transitions isn't ideal, as it prevents users from creating custom contribution statuses in the option group and using these through the API or UI.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dgg David Greenberg
                Reporter:
                paulc paul campbell
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: