From e60171ea0135f59eb67fcd365af3c81e07c20b4a Mon Sep 17 00:00:00 2001 From: aboeckle <alexander.boeckle@frentix.com> Date: Tue, 31 Mar 2020 17:23:10 +0200 Subject: [PATCH] OO-4611 - Fixed booking method error --- .../provider/free/ui/FreeAccessConfigurationController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/olat/resource/accesscontrol/provider/free/ui/FreeAccessConfigurationController.java b/src/main/java/org/olat/resource/accesscontrol/provider/free/ui/FreeAccessConfigurationController.java index c7223c6cdac..86877dd34dc 100644 --- a/src/main/java/org/olat/resource/accesscontrol/provider/free/ui/FreeAccessConfigurationController.java +++ b/src/main/java/org/olat/resource/accesscontrol/provider/free/ui/FreeAccessConfigurationController.java @@ -108,10 +108,10 @@ public class FreeAccessConfigurationController extends AbstractConfigurationMeth protected boolean validateFormLogic(UserRequest ureq) { boolean allOk = super.validateFormLogic(ureq); - if (dateFrom.getValue() != null && dateTo.getValue() != null && dateFrom.getValue().compareTo(dateTo.getValue()) > 0) { + if (dateFrom.getDate() != null && dateTo.getDate() != null && dateFrom.getDate().compareTo(dateTo.getDate()) > 0) { dateTo.setErrorKey("date.error", null); dateFrom.setErrorKey(null, null); - allOk = false; + allOk &= false; } return allOk; -- GitLab