Skip to content
Snippets Groups Projects
Commit 8ba05d4d authored by yogeshwar's avatar yogeshwar
Browse files

#Fixes::157692300::yogeshwar::LayoutEditor Multiselect combo box default value is not saving

parent 83872267
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,14 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
$defaultValue = $fieldInstance->get('defaultvalue');
if(!is_null($request->get('fieldDefaultValue', null))) {
if(is_array($request->get('fieldDefaultValue')))
{
$defaultValue=decode_html(implode(', ',$request->get('fieldDefaultValue')));
}
else
{
$defaultValue = decode_html($request->get('fieldDefaultValue'));
}
if(preg_match('/AM|PM/',$defaultValue) && ($fieldInstance->get('uitype') =='14'))
{
$defaultValue=Vtiger_Time_UIType::getTimeValueWithSeconds($defaultValue);
......
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