From 880eb897191c906d141afafe628d66f9a5025640 Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Thu, 18 Apr 2024 10:11:38 +0200 Subject: [PATCH] fix(calendar): resource was busy even if they have delegated --- SoObjects/Appointments/SOGoAppointmentObject.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index b5660f5a7..1f7dc9132 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -842,9 +842,12 @@ if(r_hasDelegated) nbOfDelegation++; } - if([user numberOfSimultaneousBookings] >= [fbInfo count] - nbOfDelegation) + if([user numberOfSimultaneousBookings] > [fbInfo count] - nbOfDelegation) { //Resource can still accept reservation, continue the while statement + [[currentAttendee attributes] removeObjectForKey: @"RSVP"]; + [currentAttendee setParticipationStatus: iCalPersonPartStatAccepted]; + _resourceHasAutoAccepted = YES; continue; } }