Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.1.3
-
Fix Version/s: 4.2.0
-
Component/s: CiviContribute, CiviCRM API
-
Labels:None
Description
Updating a contribution with civicrm_api('Contribution','Create', $contribution ); (to circumvent CRM-10376) without a set 'contribution_type_id' does not result in a API error, but creates a warning
"Undefined index: in CRM_Contribute_BAO_Contribution::create() (line 349 of sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution.php", resulting in empty recent items.