From c9f2e0900a3312c9b93de80f87780b5901ee18b7 Mon Sep 17 00:00:00 2001 From: Melina Gutierrez Date: Mon, 25 Nov 2024 15:33:34 -0400 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20restriccion=20para=20la=20edad=20?= =?UTF-8?q?de=20un=20empleado?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/primefactorsolutions/views/EmployeeView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/primefactorsolutions/views/EmployeeView.java b/src/main/java/com/primefactorsolutions/views/EmployeeView.java index fe3ca60..0fcc551 100644 --- a/src/main/java/com/primefactorsolutions/views/EmployeeView.java +++ b/src/main/java/com/primefactorsolutions/views/EmployeeView.java @@ -184,7 +184,7 @@ public class EmployeeView extends BeanValidationForm implements HasUrl LocalDate selectedDate = event.getValue(); if (selectedDate != null && ChronoUnit.YEARS.between(selectedDate, LocalDate.now()) < 18) { birthday.setInvalid(true); - birthday.setErrorMessage("El empleado debe ser mayor de 18 años"); + birthday.setErrorMessage("El empleado debe ser mayor o tener 18 años"); } else { birthday.setInvalid(false); }