Revert "fix obsolete use of CRM_Utils_Array::first()"

This commit is contained in:
Marc Michalsky 2024-06-06 14:14:44 +02:00
parent bea59b4365
commit 0caf9bf98e
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9

View file

@ -817,7 +817,7 @@ function civicrm_api3_twingle_donation_Submit($params) {
civicrm_api4('Note', 'create', [ civicrm_api4('Note', 'create', [
'values' => [ 'values' => [
'entity_table' => 'civicrm_contribution', 'entity_table' => 'civicrm_contribution',
'entity_id' => $result_values['contribution']['id'], 'entity_id' => CRM_Utils_Array::first($result_values['contribution'])['id'],
'note' => $params[$target], 'note' => $params[$target],
], ],
]); ]);