mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
* CalDAV/Calendar: fix accepting invitations with an not attending organizer adds organizer as attendee
Before we added a not attending organizer as attendee with status DELEGATED, now we no longer add him as attendee at all.
This commit is contained in:
parent
42736c833c
commit
17f8e3016b
@ -572,20 +572,6 @@ class calendar_ical extends calendar_boupdate
|
||||
$organizerURL = empty($organizerEMail) ? '' : 'mailto:' . $organizerEMail;
|
||||
}
|
||||
$organizerUID = $event['owner'];
|
||||
if (!isset($event['participants'][$event['owner']]))
|
||||
{
|
||||
$options = array(
|
||||
'ROLE' => 'CHAIR',
|
||||
'PARTSTAT' => 'DELEGATED',
|
||||
'CUTYPE' => 'INDIVIDUAL',
|
||||
//'RSVP' => 'FALSE',
|
||||
);
|
||||
if (!empty($organizerCN)) $options['CN'] = $organizerCN;
|
||||
if (!empty($organizerEMail)) $options['EMAIL'] = $organizerEMail;
|
||||
if (!empty($event['owner'])) $options['X-EGROUPWARE-UID'] = $event['owner'];
|
||||
$attributes['ATTENDEE'][] = $organizerURL;
|
||||
$parameters['ATTENDEE'][] = $options;
|
||||
}
|
||||
}
|
||||
// do NOT use ORGANIZER for events without further participants or a different organizer
|
||||
if (count($event['participants']) > 1 || !isset($event['participants'][$event['owner']]))
|
||||
|
Loading…
Reference in New Issue
Block a user