mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
* CalDAV/Calendar: participants without status were not imported for new events (eg. from Thunderbird)
This commit is contained in:
parent
60450ce640
commit
2c4982d2ac
@ -1499,21 +1499,18 @@ class calendar_ical extends calendar_boupdate
|
||||
if (!is_array($event['participants'])) $event['participants'] = array();
|
||||
$event['participants'][$event['owner']] = $status;
|
||||
}
|
||||
else
|
||||
foreach ($event['participants'] as $uid => $status)
|
||||
{
|
||||
foreach ($event['participants'] as $uid => $status)
|
||||
// if the client did not give us a proper status => set default
|
||||
if ($status[0] == 'X')
|
||||
{
|
||||
// if the client did not give us a proper status => set default
|
||||
if ($status[0] == 'X')
|
||||
if ($uid == $event['owner'])
|
||||
{
|
||||
if ($uid == $event['owner'])
|
||||
{
|
||||
$event['participants'][$uid] = calendar_so::combine_status('A', 1, 'CHAIR');
|
||||
}
|
||||
else
|
||||
{
|
||||
$event['participants'][$uid] = calendar_so::combine_status('U');
|
||||
}
|
||||
$event['participants'][$uid] = calendar_so::combine_status('A', 1, 'CHAIR');
|
||||
}
|
||||
else
|
||||
{
|
||||
$event['participants'][$uid] = calendar_so::combine_status('U');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user