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

contributions deleted when modifying overdue pledge

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.1
    • Fix Version/s: 3.4.2
    • Component/s: None
    • Labels:
      None

      Description

      Steps to reproduce

      Create a pledge & enter a payment against it

      Edit the pledge & make the start date earlier such that it is overdue - payment disappears.

      This (in Pledge BAO)

      is being triggered

      // skip payment stuff inedit mode
      if ( !isset( $params['id'] ) ||
      CRM_Utils_Array::value('is_pledge_pending', $params ) ) {

      require_once 'CRM/Pledge/BAO/Payment.php';

      //if pledge is pending delete all payments and recreate.
      if ( CRM_Utils_Array::value('is_pledge_pending', $params ) )

      { CRM_Pledge_BAO_Payment::deletePayments( $pledge->id ); }

      Even though a contribution exists

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                neha.saraph Neha Kulkarni
                Reporter:
                eileen Eileen McNaughton
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: