diff --git a/app/controllers/register_attendances_controller.rb b/app/controllers/register_attendances_controller.rb index c536c88bc..8af24d97f 100644 --- a/app/controllers/register_attendances_controller.rb +++ b/app/controllers/register_attendances_controller.rb @@ -56,6 +56,7 @@ def set_patient_sessions .where .missing(:session_attendances) .or(ps.where.not(session_attendances: { session_date: @session_date })) + .to_a end def set_patient