|
|
|
@@ -520,7 +520,7 @@ app.model.Appointment = function( appData, attendees, attendeeProfiles ) |
|
|
|
{
|
|
|
|
if ( attendees[ ai ].has_attended == "attended" )
|
|
|
|
{
|
|
|
|
attendeesAttended.push( attendees[ ai ].profile_id );
|
|
|
|
attendeesAttended.push( attendees[ ai ]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -537,7 +537,8 @@ app.model.Appointment = function( appData, attendees, attendeeProfiles ) |
|
|
|
attendees[ ai ].has_attended == "declined" )
|
|
|
|
{
|
|
|
|
//attendeesNotAttended.push( this.getProfileById( attendees[ ai ].profile_id ) );
|
|
|
|
attendeesNotAttended.push( attendees[ ai ].profile_id );
|
|
|
|
//attendeesNotAttended.push( attendees[ ai ].profile_id );
|
|
|
|
attendeesNotAttended.push( attendees[ ai ] );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@@ -637,13 +638,13 @@ app.model.Appointment = function( appData, attendees, attendeeProfiles ) |
|
|
|
* @param profileId
|
|
|
|
* @returns {*}
|
|
|
|
*/
|
|
|
|
this.getAttendeeHasAttendedValueForProfileId = function( profileId )
|
|
|
|
this.getAttendeeHasAttendedValueForProfileId = function( profileId, profileChildId = null )
|
|
|
|
{
|
|
|
|
var ha = null;
|
|
|
|
|
|
|
|
for ( var ai = 0; ai < attendees.length; ai++ )
|
|
|
|
{
|
|
|
|
if ( attendees[ ai ].profile_id == profileId )
|
|
|
|
if ( attendees[ ai ].profile_id == profileId && profileChildId == attendees[ ai ].profile_child_id )
|
|
|
|
{
|
|
|
|
ha = attendees[ ai ].has_attended;
|
|
|
|
break;
|
|
|
|
|