--CRM-10206, reverted back some changes that caused regression when creating multi...
authorPradeep Nayak <pradpnayak@gmail.com>
Tue, 18 Nov 2014 15:04:26 +0000 (20:34 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Wed, 19 Nov 2014 11:07:24 +0000 (16:37 +0530)
api/v3/utils.php

index b1ae45a5da5e5fa8d07c087ba5e915bd8fc4cb8b..a5df1aab03dfac6b48e4f9be980d473c091d95ea 100644 (file)
@@ -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
       );