ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #490] Fixed bug using LocalDate objects to make the comparison.

This commit is contained in:
Jacobo Aragunde Pérez 2010-06-17 14:39:06 +02:00 committed by Javier Moran Rua
parent 02b59c55c5
commit 1f8c4202cf

View file

@ -483,7 +483,7 @@ public abstract class BaseCalendarEditionController extends
} else {
Clients.closeErrorBox(dateboxEndDate);
}
if (startDate.compareTo(endDate) > 0) {
if (new LocalDate(startDate).compareTo(new LocalDate(endDate)) > 0) {
throw new WrongValueException(
dateboxEndDate,
_("Exception end date should be greater or equals than start date"));