use api4 instead of api3
This commit is contained in:
parent
1ddcc217e3
commit
089bbdf934
1 changed files with 12 additions and 8 deletions
|
@ -492,10 +492,12 @@ function civicrm_api3_twingle_donation_Submit($params) {
|
||||||
&& '' != $params[$target]
|
&& '' != $params[$target]
|
||||||
&& in_array($target, $contact_note_mappings)
|
&& in_array($target, $contact_note_mappings)
|
||||||
) {
|
) {
|
||||||
civicrm_api3('Note', 'create', [
|
civicrm_api4('Note', 'create', [
|
||||||
|
'values' => [
|
||||||
'entity_table' => 'civicrm_contact',
|
'entity_table' => 'civicrm_contact',
|
||||||
'entity_id' => $contact_id,
|
'entity_id' => $contact_id,
|
||||||
'note' => $params[$target],
|
'note' => $params[$target],
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -812,10 +814,12 @@ function civicrm_api3_twingle_donation_Submit($params) {
|
||||||
&& isset($params[$target])
|
&& isset($params[$target])
|
||||||
&& '' != $params[$target]
|
&& '' != $params[$target]
|
||||||
) {
|
) {
|
||||||
civicrm_api3('Note', 'create', [
|
civicrm_api4('Note', 'create', [
|
||||||
|
'values' => [
|
||||||
'entity_table' => 'civicrm_contribution',
|
'entity_table' => 'civicrm_contribution',
|
||||||
'entity_id' => $result_values['contribution']['id'],
|
'entity_id' => $result_values['contribution']['id'],
|
||||||
'note' => $params[$target],
|
'note' => $params[$target],
|
||||||
|
],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue