fix custom_field_mapping
removed unnecessary json_decode
This commit is contained in:
parent
25a040f6d8
commit
22c9631ec6
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ function civicrm_api3_twingle_donation_Submit($params) {
|
|||
if (!empty($params['custom_fields'])) {
|
||||
$custom_field_mapping = $profile->getCustomFieldMapping();
|
||||
|
||||
foreach (json_decode($params['custom_fields']) as $twingle_field => $value) {
|
||||
foreach ($params['custom_fields'] as $twingle_field => $value) {
|
||||
if (isset($custom_field_mapping[$twingle_field])) {
|
||||
// Get custom field definition to store values by entity the field
|
||||
// extends.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue