fix custom_field_mapping

removed unnecessary  json_decode
This commit is contained in:
Marc Michalsky 2020-06-25 11:36:04 +02:00
parent 25a040f6d8
commit 22c9631ec6
No known key found for this signature in database
GPG key ID: AC2D4E00990A6767

View file

@ -296,7 +296,7 @@ function civicrm_api3_twingle_donation_Submit($params) {
if (!empty($params['custom_fields'])) { if (!empty($params['custom_fields'])) {
$custom_field_mapping = $profile->getCustomFieldMapping(); $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])) { if (isset($custom_field_mapping[$twingle_field])) {
// Get custom field definition to store values by entity the field // Get custom field definition to store values by entity the field
// extends. // extends.