Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.4
-
Fix Version/s: 3.4.5
-
Component/s: CiviCRM API
-
Labels:None
Description
contribution update expects the ID "id" to be set, while setting only the contribution_id returns in an error that id is not set. Setting id to the a valid contribution id results in "No Contribution with id" since updateing a contributuion first tires to get a contributuion where the id parameter is interpreted as a contact_id...
A minimal working example is /civicrm/ajax/rest?json=1&debug=1&version=3&entity=Contribution&action=update&id=1&total_amount=123