Skip to content
Snippets Groups Projects
Commit 1d7937d4 authored by yogeshwar's avatar yogeshwar
Browse files

Fixes::157992311::yogeshwar::Changes Removed

parent 967ef31a
No related branches found
No related tags found
No related merge requests found
......@@ -99,18 +99,7 @@ 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);
}
$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