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

API delete action for pledge payment risks data loss

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.2, 4.0.4
    • Fix Version/s: 3.4.5, 4.0.5
    • Component/s: None
    • Labels:
      None

      Description

      In API v3, the 'delete' action on PledgePayment object takes the pledge payment id and sends it to CRM_Pledge_BAO_Payment::deletePayments( $id ), which method expects a pledge id and wants to delete all payments from that pledge.

      At this point there is no BAO method for deleting individual pledge payments.

      The attached patch provides that method and points the API to it when deleting a pledge payment.

        Attachments

          Activity

            People

            • Assignee:
              neha.saraph Neha Kulkarni
              Reporter:
              allenshaw Allen Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: