From c435f1844f5e70fef2b6d23692e27c7c86c85405 Mon Sep 17 00:00:00 2001 From: uhensler <urs.hensler@frentix.com> Date: Wed, 2 Dec 2020 13:49:02 +0100 Subject: [PATCH] OO-5120: User may select confirmed appointments if auto confirmation --- .../ui/AppointmentListSelectionController.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/olat/modules/appointments/ui/AppointmentListSelectionController.java b/src/main/java/org/olat/modules/appointments/ui/AppointmentListSelectionController.java index 67a8b881ca3..12428784b78 100644 --- a/src/main/java/org/olat/modules/appointments/ui/AppointmentListSelectionController.java +++ b/src/main/java/org/olat/modules/appointments/ui/AppointmentListSelectionController.java @@ -185,10 +185,11 @@ public class AppointmentListSelectionController extends AppointmentListControlle } else if (topic.isMultiParticipation() || userHasNoConfirmedParticipation) { row.setFreeParticipations(freeParticipations); - boolean selectable = Appointment.Status.confirmed == appointment.getStatus() - ? false - : freeParticipations == null // no limit - || freeParticipations.intValue() > 0; + + boolean selectable = Appointment.Status.planned == appointment.getStatus() || (topic.isAutoConfirmation() && !selected) + ? freeParticipations == null // no limit + || freeParticipations.intValue() > 0 + : false; boolean unselectable = selected && Appointment.Status.planned == appointment.getStatus(); boolean enabled = selectable || unselectable; -- GitLab