Skip to content
Snippets Groups Projects
Commit fca5da62 authored by Uma's avatar Uma
Browse files

Merge branch 'Picklist_translate_numeric_values' into 'master'

Picklist translate numeric values

See merge request !601
parents 7f6609d6 e6514ede
No related branches found
No related tags found
No related merge requests found
......@@ -268,9 +268,15 @@ class Vtiger_Field_Model extends Vtiger_Field {
$fieldPickListValues = array();
$picklistValues = Vtiger_Util_Helper::getPickListValues($fieldName);
foreach($picklistValues as $value) {
$fieldPickListValues[$value] = vtranslate($value,$this->getModuleName());
}
foreach ($picklistValues as $value) {
if (!is_numeric($value)) {
$addValue = vtranslate($value, $this->getModuleName());
} else {
$addValue = $value;
}
$fieldPickListValues[$value] = $addValue;
}
return $fieldPickListValues;
}
return null;
......
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