Quintiq file version 2.0
#parent: #root
Method InitializeSubscribers () id:Method_LibCal_dlgMultipleEvent_InitializeSubscribers
{
  #keys: '[415136.0.647231508]'
  Body:
  [*
    participation        := dhLeadingParticipation.Data();
    calendar             := participation.Calendar();
    potentialSubscribers := calendar.GetPotentialSubscribers();
    
    // Remove the calendar of the initiator (cannot subscribe to self).
    initiator := dhEvent.Data().Calendar();
    if( potentialSubscribers.Find( initiator ) >= 0 )
    {
      potentialSubscribers.Remove( initiator );
    }
    
    dhPotentialSubscribers.Data( &potentialSubscribers );
  *]
}
