From e93dc4df55621946f80732a80c6f36107527eaeb Mon Sep 17 00:00:00 2001 From: satish <satish.dvnk@vtiger.com> Date: Mon, 26 Jun 2017 17:14:36 +0530 Subject: [PATCH] Fixes #591 - Invalid formatting of uitype 1 in vt7.0.1 --- include/ListView/ListViewController.php | 4 +--- modules/Vtiger/uitypes/Double.php | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/include/ListView/ListViewController.php b/include/ListView/ListViewController.php index 94c4e811c..ccc648e90 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 74e19aa48..7d9df554d 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); } /** -- GitLab