Skip to content
Snippets Groups Projects
Commit dfdf5f7b authored by Apparao G's avatar Apparao G
Browse files

#Fixes::157865498::Appu::When we edit the custom field of type currency ,the...

#Fixes::157865498::Appu::When we edit the custom field of type currency ,the value is changing to one digit by default
parent ff2c8748
No related branches found
No related tags found
1 merge request!989#Fixes::157865498::Appu::When we edit the custom field of type currency ,the value is changing to one digit by default
......@@ -38,9 +38,10 @@ class Vtiger_SaveAjax_Action extends Vtiger_Save_Action {
$displayValue = $fieldModel->getDisplayValue($fieldValue, $recordModel->getId());
}
if ($fieldModel->getFieldDataType() == 'currency') {
$displayValue = Vtiger_Currency_UIType::transformDisplayValue($fieldValue);
$displayValue = Vtiger_Currency_UIType::transformDisplayValue(Vtiger_Currency_UIType::convertToDBFormat($fieldValue));
}
if(!empty($picklistColorMap)) {
if(!empty($picklistColorMap) && ($fieldModel->getFieldDataType() == 'picklist' || $fieldModel->getFieldDataType() == 'multipicklist')) {
$result[$fieldName] = array('value' => $fieldValue, 'display_value' => $displayValue, 'colormap' => $picklistColorMap);
} else {
$result[$fieldName] = array('value' => $fieldValue, 'display_value' => $displayValue);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment