From 22c9631ec6b93af095310e46810fcd41457bd3bb Mon Sep 17 00:00:00 2001 From: Marc Michalsky Date: Thu, 25 Jun 2020 11:36:04 +0200 Subject: [PATCH] fix custom_field_mapping removed unnecessary json_decode --- api/v3/TwingleDonation/Submit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v3/TwingleDonation/Submit.php b/api/v3/TwingleDonation/Submit.php index f84d21c..afa3ca3 100644 --- a/api/v3/TwingleDonation/Submit.php +++ b/api/v3/TwingleDonation/Submit.php @@ -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.