#1328 Bugfix Gender Validation on Create New Guest Customer

This commit is contained in:
Nino Righi
2021-03-12 12:00:36 +01:00
committed by Lorenz Hilpert
parent 3afbf28843
commit 524c946bc2

View File

@@ -81,7 +81,7 @@ export class CustomerCreateGuestComponent extends CustomerCreateComponentBase im
department: fb.control(customer?.organisation?.department),
vatId: fb.control(customer?.organisation?.vatId),
}),
gender: fb.control(customer?.gender || 0, [Validators.required]),
gender: fb.control(customer?.gender, [Validators.required, Validators.min(1)]),
title: fb.control(customer?.title),
firstName: fb.control(customer?.firstName, [Validators.required, Validators.pattern(this.NAME_PATTERN)]),
lastName: fb.control(customer?.lastName, [Validators.required, Validators.pattern(this.NAME_PATTERN)]),