Skip to content
Snippets Groups Projects
Commit e60171ea authored by aboeckle's avatar aboeckle
Browse files

OO-4611 - Fixed booking method error

parent ae087329
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment