mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-01 16:11:20 +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 = get_freebusy( '^'.$attendee->dav_name, $range_start, $range_end );
|
||||||
|
|
||||||
$fb->AddProperty( 'UID', $ical->GetPValue('UID') );
|
$fb->AddProperty( 'UID', $ical->GetPValue('UID') );
|
||||||
$fb->SetProperties( $ic->GetProperties('ORGANIZER'), 'ORGANIZER');
|
$fb->SetProperties( $ical->GetProperties('ORGANIZER'), 'ORGANIZER');
|
||||||
|
foreach ( $ical->GetProperties('ATTENDEE') as $at ) {
|
||||||
foreach( $icalAttendees AS $ia ) {
|
if ( $at->Value() == 'mailto:' . $attendee->email )
|
||||||
if ( $ia->Value() == 'mailto:' . $attendee ) { // FIXME: this is probably wrong
|
$fb->AddProperty( $at );
|
||||||
$fb->AddProperty( $ia );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$vcal = new vCalendar( array('METHOD' => 'REPLY') );
|
$vcal = new vCalendar( array('METHOD' => 'REPLY') );
|
||||||
$vcal->AddComponent( $fb );
|
$vcal->AddComponent( $fb );
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user