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

#Fixes::157703673::Yogeshwar::Re-Fixed

parent d09d6ef6
No related branches found
No related tags found
1 merge request!953Fixes::157703673::yogeshwar::custom field timezone AM PM displaying twice
......@@ -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