mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
#1328 Bugfix Gender Validation on Create New Guest Customer
This commit is contained in:
committed by
Lorenz Hilpert
parent
3afbf28843
commit
524c946bc2
@@ -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)]),
|
||||
|
||||
Reference in New Issue
Block a user