diff --git a/modules/Calendar/actions/Save.php b/modules/Calendar/actions/Save.php index 01309bc37a610122f2a86a7bdea33a7f0c49fe50..bf585b2471c77785be2158268c91d66a15431160 100644 --- a/modules/Calendar/actions/Save.php +++ b/modules/Calendar/actions/Save.php @@ -151,7 +151,8 @@ class Calendar_Save_Action extends Vtiger_Save_Action { $fieldValue = Vtiger_Time_UIType::getTimeValueWithSeconds($fieldValue); } if(is_array($fieldValue) && $fieldDataType == 'multipicklist'){ - $fieldValue=implode(' |##| ',$fieldValue); + // Concatenating the array values of a multipicklist using implode to store them in the database. + $fieldValue = implode(' |##| ',$fieldValue); } // End if ($fieldName === $request->get('field')) { diff --git a/modules/Vtiger/actions/SaveAjax.php b/modules/Vtiger/actions/SaveAjax.php index a1c5c434f1470850e9e7a59eff3764b2ca7c5f5d..f5fc510acc8a557ddebc03ae222a59d128914c59 100644 --- a/modules/Vtiger/actions/SaveAjax.php +++ b/modules/Vtiger/actions/SaveAjax.php @@ -108,7 +108,8 @@ class Vtiger_SaveAjax_Action extends Vtiger_Save_Action { $fieldValue = Vtiger_Time_UIType::getTimeValueWithSeconds($fieldValue); } if(is_array($fieldValue) && $fieldDataType == 'multipicklist'){ - $fieldValue=implode(' |##| ',$fieldValue); + //Concatenating the array values of a multipicklist using implode to store them in the database + $fieldValue = implode(' |##| ',$fieldValue); } $fieldValue = $this->purifyCkeditorField($fieldName, $fieldValue); if ($fieldValue !== null) {