diff --git a/modules/Vtiger/actions/SaveAjax.php b/modules/Vtiger/actions/SaveAjax.php index 0c5013d106ef63f11e14d2051d5fbeeb360f18e0..229a9e5d6570e22aefd35d4fbfc43f3fc9edc32f 100644 --- a/modules/Vtiger/actions/SaveAjax.php +++ b/modules/Vtiger/actions/SaveAjax.php @@ -138,6 +138,10 @@ class Vtiger_SaveAjax_Action extends Vtiger_Save_Action { if ($fieldDataType == 'time' && $fieldValue !== null) { $fieldValue = Vtiger_Time_UIType::getTimeValueWithSeconds($fieldValue); } + // Concatenating the array values of a multipicklist using implode to store them in the database + if(is_array($fieldValue) && $fieldDataType == 'multipicklist'){ + $fieldValue=implode(' |##| ',$fieldValue); + } $fieldValue = $this->purifyCkeditorField($fieldName, $fieldValue); if ($fieldValue !== null) { if (!is_array($fieldValue)) {