Commit 43959a67 authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #18721 TIME 3 set values if field is empty

parent b82edb8d
......@@ -815,7 +815,8 @@ export class IndexingFormComponent implements OnInit {
}
if (elem.type === 'date') {
if (!this.functions.empty(fieldValue)) {
if (!this.functions.empty(fieldValue) || elem.default_value !== null) {
fieldValue = elem.default_value !== null ? elem.default_value : fieldValue;
fieldValue = new Date(fieldValue);
} else {
elem.default_value = null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment