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

Fixes #236 - MultiPickList values aren't translated in detail view 6.4.0

parent 6fa1e42b
No related branches found
No related tags found
No related merge requests found
......@@ -24,13 +24,20 @@ class Vtiger_Multipicklist_UIType extends Vtiger_Base_UIType {
* @return <Object>
*/
public function getDisplayValue($value) {
if(is_array($value)){
$value = implode(' |##| ', $value);
}
if (!is_array($value)) {
$value = explode(' |##| ', $value);
}
$moduleName = $this->get('field')->getModuleName();
foreach ($value as $key => $picklistValue) {
$value[$key] = vtranslate($picklistValue, $moduleName);
}
$value = implode(' |##| ', $value);
return str_ireplace(' |##| ', ', ', $value);
}
public function getDBInsertValue($value) {
public function getDBInsertValue($value) {
if(is_array($value)){
$value = implode(' |##| ', $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