Skip to content
Snippets Groups Projects
Commit 7d92f6d6 authored by yogeshwar's avatar yogeshwar
Browse files

#Fixes::157692300::yogeshwar::Changes Removed

parent 8ba05d4d
No related branches found
No related tags found
1 merge request!955#Fixes::157692300::yogeshwar::layout editor multiselect combo box default value is not saving
......@@ -97,20 +97,9 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
$fieldInstance->set('masseditable', $massEditable);
}
$defaultValue = $fieldInstance->get('defaultvalue');
$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);
}
$fieldInstance->set('defaultvalue', $defaultValue);
}
$response = new Vtiger_Response();
......
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