diff --git a/modules/Vtiger/helpers/Util.php b/modules/Vtiger/helpers/Util.php index 8cda7ad001c5025725b6b589d52c33bb7a76e387..cfc0b801210b590db8f195d2727e1d547fb34906 100644 --- a/modules/Vtiger/helpers/Util.php +++ b/modules/Vtiger/helpers/Util.php @@ -1268,7 +1268,7 @@ class Vtiger_Util_Helper { if(!empty($editablePicklistValues) && !isset($editablePicklistValues[$fieldValue])){ $fieldValue = null; } - }elseif((is_array($fieldValue) && count($fieldValue) > 0) && $fieldDataType == 'multipicklist'){ + }elseif(!empty($fieldValue) && $fieldDataType == 'multipicklist'){ if(!empty($editablePicklistValues)){ foreach($fieldValue as $key => $value){ if(!isset($editablePicklistValues[$fieldValue])){ @@ -1279,4 +1279,4 @@ class Vtiger_Util_Helper { } return $fieldValue; } -} +} \ No newline at end of file