forked from extern/egroupware
Remove user as attendee, if he is the only participant and has accepted
This commit is contained in:
parent
7b850eabb6
commit
48bc5c8119
@ -472,8 +472,12 @@ class calendar_ical extends calendar_boupdate
|
||||
switch ($icalFieldName)
|
||||
{
|
||||
case 'ATTENDEE':
|
||||
$attendees = count($event['participants']);
|
||||
foreach ((array)$event['participants'] as $uid => $status)
|
||||
{
|
||||
calendar_so::split_status($status, $quantity, $role);
|
||||
if ($attendees == 1 &&
|
||||
$uid == $this->user && $status == 'A') continue;
|
||||
if (!($info = $this->resource_info($uid))) continue;
|
||||
if ($this->log)
|
||||
{
|
||||
@ -492,7 +496,6 @@ class calendar_ical extends calendar_boupdate
|
||||
{
|
||||
$participantURL = empty($info['email']) ? '' : 'MAILTO:' . $info['email'];
|
||||
}
|
||||
calendar_so::split_status($status, $quantity, $role);
|
||||
if ($role == 'CHAIR')
|
||||
{
|
||||
$organizerURL = $participantURL;
|
||||
|
Loading…
Reference in New Issue
Block a user