From fc4f2a6fc6cdeff67b355b2a5dc6554bf620aeb0 Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Tue, 18 Nov 2014 20:34:26 +0530 Subject: [PATCH] --CRM-10206, reverted back some changes that caused regression when creating multi value custom field value using api --- api/v3/utils.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index b1ae45a5da..a5df1aab03 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -959,11 +959,7 @@ function _civicrm_api3_custom_format_params($params, &$values, $extends, $entity if ($checkCheckBoxField && !empty($fields['custom_' . $customFieldID]) && $fields['custom_' . $customFieldID]['html_type'] == 'CheckBox') { formatCheckBoxField($value, 'custom_' . $customFieldID, $entity); } - // update custom field using get api, temporary value has to Overwrite - // get api return custom_customFieldID and custom_customFieldID_customValueID - if ($customValueID) { - $value = $params['custom_'.$customFieldID]; - } + CRM_Core_BAO_CustomField::formatCustomField($customFieldID, $values['custom'], $value, $extends, $customValueID, $entityId, FALSE, FALSE, TRUE ); -- 2.25.1