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

Legacy contribution create with soft credit should set the default soft credit type

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5.1
    • Component/s: CiviContribute, CiviCRM API
    • Labels:
      None
    • Documentation Required?:
      Developer Doc

      Description

      Contribution create api still supports use of 'legacy' soft_credit_to parameter. However, the expected soft_credit_type_id is not set with this usage.

      1. Modify civicrm_api3_contribution_create to pass default soft_credit_type_id when the simple soft_credit_to param is used.
      2. Also add legacy support for honor_contact_id param.
      3. Update api unit test to check on both the legacy and the chained methods.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dgg David Greenberg
                Reporter:
                dgg David Greenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: