Skip to content
Snippets Groups Projects
Commit d5f34d61 authored by Jean-Laurent DUZANT's avatar Jean-Laurent DUZANT
Browse files

FIX #20394 TIME 0:05 fix reset DLT when clock is disable

parent 73d7e1d2
Branches
Tags
No related merge requests found
......@@ -1239,9 +1239,17 @@ export class IndexingFormComponent implements OnInit {
if (field.today) {
this.arrFormControl[field.identifier].disable();
this.arrFormControl[field.identifier].setValue(new Date());
if (field.identifier === 'processLimitDate' && !this.functions.empty(this.arrFormControl['priority'])) {
this.setPriorityColorByLimitDate(null, { value: new Date()});
}
} else {
this.arrFormControl[field.identifier].setValue('');
this.arrFormControl[field.identifier].enable();
const clonePriority = this.indexingModelClone.fields.find((element: any) => element.identifier === 'priority');
if (field.identifier === 'processLimitDate' && !this.functions.empty(this.arrFormControl['priority']) && !this.functions.empty(clonePriority)) {
this.arrFormControl['priority'].setValue(clonePriority.default_value);
this.calcLimitDateByPriority(clonePriority, clonePriority.default_value);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment