Skip to content
Snippets Groups Projects
Commit eeec5d77 authored by madhu sr's avatar madhu sr
Browse files

#Fixes::157694138::madhusr::custom date field after editing not in user format

parent 47b99138
No related branches found
No related tags found
1 merge request!1028Fixes: Convert the date field value to DB format(yyyy-mm-dd) before storing.
......@@ -109,9 +109,6 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
{
$defaultValue=Vtiger_Time_UIType::getTimeValueWithSeconds($defaultValue);
}
if ($defaultValue && $fieldInstance->get('uitype')=='5') {
$defaultValue = Vtiger_Date_UIType::getDBInsertedValue($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