Skip to content
Snippets Groups Projects
Commit 264a32f8 authored by Prasad's avatar Prasad
Browse files

Merge branch '158702954' into 'master'

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

See merge request !1107
parents d51aa92c 6766d71c
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
vendor/*
!vendor/.htaccess
.vscode/*
\ No newline at end of file
......@@ -150,6 +150,10 @@ class Calendar_Save_Action extends Vtiger_Save_Action {
if($fieldDataType == 'time' && $fieldValue !== null){
$fieldValue = Vtiger_Time_UIType::getTimeValueWithSeconds($fieldValue);
}
if(is_array($fieldValue) && $fieldDataType == 'multipicklist'){
// Concatenating the array values of a multipicklist using implode to store them in the database.
$fieldValue = implode(' |##| ',$fieldValue);
}
// End
if ($fieldName === $request->get('field')) {
$fieldValue = $request->get('value');
......
......@@ -107,6 +107,10 @@ class Vtiger_SaveAjax_Action extends Vtiger_Save_Action {
if ($fieldDataType == 'time' && $fieldValue !== null) {
$fieldValue = Vtiger_Time_UIType::getTimeValueWithSeconds($fieldValue);
}
if(is_array($fieldValue) && $fieldDataType == 'multipicklist'){
//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) {
if (!is_array($fieldValue)) {
......
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