From 255640ec5f0213728f3d8171bcf67d74c9bc8920 Mon Sep 17 00:00:00 2001 From: Felix van Hove Date: Fri, 28 Feb 2025 00:09:02 +0100 Subject: [PATCH] fix: Create Guarantor form issues (#2284) Client Detail must only be shown when Name got selected. Prevent any Javascript errors. Enable the user to enter a date of birth before 2000. Fixes: WEB-30 --- .../create-guarantor/create-guarantor.component.html | 4 ++-- .../create-guarantor/create-guarantor.component.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.html b/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.html index 200a31bdfb..be829dc0e8 100644 --- a/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.html +++ b/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.html @@ -37,7 +37,7 @@ - + {{ 'labels.inputs.Account' | translate }} @@ -137,7 +137,7 @@ - +
{{ 'labels.inputs.Client Details' | translate }}
diff --git a/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.ts b/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.ts index e60194f35c..0335df41db 100644 --- a/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.ts +++ b/src/app/loans/loans-view/loan-account-actions/create-guarantor/create-guarantor.component.ts @@ -28,7 +28,7 @@ export class CreateGuarantorComponent implements OnInit, AfterViewInit { /** Show Client Details Form */ showClientDetailsForm = false; /** Minimum date allowed. */ - minDate = new Date(2000, 0, 1); + minDate = new Date(1900, 0, 1); /** Maximum date allowed. */ maxDate = new Date(); /** Client data. */