diff --git a/include/ListView/ListViewController.php b/include/ListView/ListViewController.php index 94c4e811cd046782dc9cd64407afc8402e17e642..ccc648e90cf4e447b3c132095bad43438ae5bf77 100644 --- a/include/ListView/ListViewController.php +++ b/include/ListView/ListViewController.php @@ -406,9 +406,7 @@ class ListViewController { } } } elseif ($fieldDataType == 'double') { - if ($value) { - $value = CurrencyField::convertToUserFormat($value, null, true); - } + $value = decimalFormat($value); } elseif($fieldDataType == 'url') { $matchPattern = "^[\w]+:\/\/^"; preg_match($matchPattern, $rawValue, $matches); diff --git a/modules/Vtiger/uitypes/Double.php b/modules/Vtiger/uitypes/Double.php index 74e19aa484edb7edc534b42a7435c10f2a2f92dd..7d9df554dc89a049894ee8e2a37f4e82455454f1 100644 --- a/modules/Vtiger/uitypes/Double.php +++ b/modules/Vtiger/uitypes/Double.php @@ -24,11 +24,7 @@ class Vtiger_Double_UIType extends Vtiger_Base_UIType { * @return <Object> */ public function getDisplayValue($value) { - $value = decimalFormat($value); - if ($value) { - $value = CurrencyField::convertToUserFormat($value, NULL, true); - } - return $value; + return decimalFormat($value); } /**