From 42224c3b40dc2569054001a5ac5b7a13cf96cd86 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 5 Jan 2023 12:16:07 +0100 Subject: [PATCH] bugfix attendee list --- src/client/app/js/app/model/Appointment.js | 1 - src/client/app/tmpl/appointment-detail-attendee.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/client/app/js/app/model/Appointment.js b/src/client/app/js/app/model/Appointment.js index 69d55b2..2671011 100644 --- a/src/client/app/js/app/model/Appointment.js +++ b/src/client/app/js/app/model/Appointment.js @@ -520,7 +520,6 @@ app.model.Appointment = function( appData, attendees, attendeeProfiles ) { if ( attendees[ ai ].has_attended == "attended" ) { - //attendeesAttended.push( this.getProfileById( attendees[ ai ].profile_id ) ); attendeesAttended.push( attendees[ ai ].profile_id ); } } diff --git a/src/client/app/tmpl/appointment-detail-attendee.html b/src/client/app/tmpl/appointment-detail-attendee.html index 5f33614..3f90058 100644 --- a/src/client/app/tmpl/appointment-detail-attendee.html +++ b/src/client/app/tmpl/appointment-detail-attendee.html @@ -20,7 +20,7 @@ <% for ( var aai = 0; aai < attendeesAttended.length; aai++ ) { %> - <% prfl = a.getProfileById( attendeesAttended[ aai ].profile_id ); %> + <% prfl = a.getProfileById( attendeesAttended[ aai ] ); %> <%=raw app.core.View.getTemplate( 'appointment-detail-attendee-row', { a: a, at :prfl, g : g, childProfile : prfl.getChildProfileById( attendeesAttended[ aai ].profile_child_id ) } ) %> <% } %>