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

contribute.repeattransaction fails when contribution_recur_id is a test recurring contribtuion

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      api contribute.repeattransaction fails when a recurring contribution id is used and that recur_id is for a test recurring contribution. Parameters is_test and test_contributions are not passed through either.

      Steps to reproduce:
      1. Make a test recurring contribution.
      2. Run repeattransaction using the contribution_recur_id like so:

      $result = civicrm_api3('Contribution', 'repeattransaction', array(
         'contribution_status_id' => "Completed",
        'contribution_recur_id' => $YOUR_TEST_RECURRING_ID,
      ));
      

      Can you look at this as a possible fix? Works for me.

      https://github.com/h-c-c/civicrm-core/commit/6a0aeb7fa889d1e26499dfe9c2d914ba98b3f830

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              peterhartmann Peter Hartmann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: