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

Fixes: Convert the date field value to DB format(yyyy-mm-dd) before storing.

parent ecd9962b
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,6 +109,7 @@ class Settings_LayoutEditor_Field_Action extends Settings_Vtiger_Index_Action {
{
$defaultValue=Vtiger_Time_UIType::getTimeValueWithSeconds($defaultValue);
}
// Converting the date value to DB format (yyyy-mm-dd)
if ($defaultValue && $fieldInstance->get('uitype')=='5') {
$defaultValue = Vtiger_Date_UIType::getDBInsertedValue($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