Skip to content
Snippets Groups Projects
Commit ea1bb09f authored by madhu sr's avatar madhu sr
Browse files

Fixes: The multipicklist values sent from Calendar module and the quick edit...

Fixes: The multipicklist values sent from Calendar module and the quick edit of all modules are concatenated into a string before being stored in the database
parent 708e4935
No related branches found
No related tags found
1 merge request!1107Fixes: The multipicklist values sent from Calendar module and the quick edit of all modules are concatenated into a string before being stored in the database
......@@ -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')) {
......
......@@ -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) {
......
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