From e2b70932e3bdc795cc93c3eb83522ebbbd31ef7a Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 30 Dec 2014 22:58:30 +0530 Subject: [PATCH] minor change --- api/v3/utils.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/v3/utils.php b/api/v3/utils.php index 7de10af76d..6942074631 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -1827,7 +1827,7 @@ function _civicrm_api3_validate_integer(&$params, &$fieldName, &$fieldInfo, $ent if ('unknown-user' === $realContactId) { throw new API_Exception("\"$fieldName\" \"{$fieldValue}\" cannot be resolved to a contact ID", 2002, array('error_field' => $fieldName,"type"=>"integer")); } elseif (is_numeric($realContactId)) { - $fieldValue = $realContactId; + $params[$fieldName] = $fieldValue = $realContactId; } } if (!empty($fieldInfo['pseudoconstant']) || !empty($fieldInfo['options'])) { @@ -1848,7 +1848,6 @@ function _civicrm_api3_validate_integer(&$params, &$fieldName, &$fieldInfo, $ent 2100, array('field' => $fieldName, "max_length"=>$fieldInfo['maxlength']) ); } - $params[$fieldName] = $fieldValue; } } -- 2.25.1