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

Fixes::157703673::yogeshwar::custom field timezone AM PM displaying twice

parent b3aeace6
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,10 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
$defaultValue = $fieldInstance->get('defaultvalue');
if(!is_null($request->get('fieldDefaultValue', null))) {
$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