mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-15 03:44:24 +00:00
ischedule: correctly set the attendee value on freebusy replies, this one actually works
This commit is contained in:
parent
e00310a56a
commit
d9c64f436e
@ -134,13 +134,12 @@ function ischedule_freebusy_request( $ic, $attendees, $attendees_fail) {
|
||||
$fb = get_freebusy( '^'.$attendee->dav_name, $range_start, $range_end );
|
||||
|
||||
$fb->AddProperty( 'UID', $ical->GetPValue('UID') );
|
||||
$fb->SetProperties( $ic->GetProperties('ORGANIZER'), 'ORGANIZER');
|
||||
|
||||
foreach( $icalAttendees AS $ia ) {
|
||||
if ( $ia->Value() == 'mailto:' . $attendee ) { // FIXME: this is probably wrong
|
||||
$fb->AddProperty( $ia );
|
||||
}
|
||||
$fb->SetProperties( $ical->GetProperties('ORGANIZER'), 'ORGANIZER');
|
||||
foreach ( $ical->GetProperties('ATTENDEE') as $at ) {
|
||||
if ( $at->Value() == 'mailto:' . $attendee->email )
|
||||
$fb->AddProperty( $at );
|
||||
}
|
||||
|
||||
$vcal = new vCalendar( array('METHOD' => 'REPLY') );
|
||||
$vcal->AddComponent( $fb );
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user