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

API resets contribution's currency

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.16, 4.6.4
    • Fix Version/s: 4.7
    • Component/s: CiviCRM API
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      The using the API to update ('create'+ID) a contribution, the contribution's currency gets reset to the default currency, unless it's explicitly included in the update request.

      To reproduce, go to the CiviCRM demo installation (Drupal), create a contribtuion in a non-default currency. The go to the API explorer and issue a 'Contribution.create' request with the contribution ID and a new total_amount. Observe that the amount has changed, but so has the currency - it got reset to the default currency.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              b.systopia Björn Endres
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: