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

#Fixes::157703673::yogeshwar::AM PM Displaying twice;

parent 7d4eddc7
No related branches found
No related tags found
1 merge request!953Fixes::157703673::yogeshwar::custom field timezone AM PM displaying twice
...@@ -105,6 +105,10 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action { ...@@ -105,6 +105,10 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
} else { } else {
$defaultValue = decode_html($request->get('fieldDefaultValue')); $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); $fieldInstance->set('defaultvalue', $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