Skip to content
Snippets Groups Projects
Commit f6bb9c8d authored by Prasad's avatar Prasad
Browse files

Merge branch '157694138' into 'master'

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

See merge request vtiger/vtigercrm!1028
parents ace5b25c 004c2691
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,10 @@ 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);
}
$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