From 5b7bab6d857187191ed8c2e88fb331d471ae8400 Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 4 Oct 2023 13:55:36 +0200 Subject: [PATCH] fix attend circle icon after attending --- src/server/server/control/TB_Server_Control_Appointment.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/server/control/TB_Server_Control_Appointment.php b/src/server/server/control/TB_Server_Control_Appointment.php index 9624229..7e075db 100644 --- a/src/server/server/control/TB_Server_Control_Appointment.php +++ b/src/server/server/control/TB_Server_Control_Appointment.php @@ -862,10 +862,12 @@ class TB_Server_Control_Appointment { throw new \Exception( 'Not visible for current session profile.' ); } - if ( false === $appointment->isAttendableByProfile( $sessionProfile ) ) + $isAttendableByProfile = $appointment->isAttendableByProfile( $sessionProfile ); + if ( false === $isAttendableByProfile ) { throw new \Exception( 'Not possible to attend by current profile.' ); } + $appointment->v_profile_can_attend = $isAttendableByProfile; //$attendeeData = TB_Shared_Ent_TeamData_Attendee::getWithProfileDataByAppointmentId( $appointment->id ); $attendeeData = TB_Shared_Ent_TeamData_Attendee::getByAppointmentId( $appointment->id );