From: monishdeb Date: Tue, 30 Dec 2014 17:28:30 +0000 (+0530) Subject: minor change X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e2b70932e3bdc795cc93c3eb83522ebbbd31ef7a;p=civicrm-core.git minor change --- 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; } }