Skip to content
Snippets Groups Projects
Commit e93dc4df authored by Satish's avatar Satish
Browse files

Fixes #591 - Invalid formatting of uitype 1 in vt7.0.1

parent 21dddb9e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
}
/**
......
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