mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-24 20:01:36 +02:00
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)
|
switch ($icalFieldName)
|
||||||
{
|
{
|
||||||
case 'ATTENDEE':
|
case 'ATTENDEE':
|
||||||
|
$attendees = count($event['participants']);
|
||||||
foreach ((array)$event['participants'] as $uid => $status)
|
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 (!($info = $this->resource_info($uid))) continue;
|
||||||
if ($this->log)
|
if ($this->log)
|
||||||
{
|
{
|
||||||
@ -492,7 +496,6 @@ class calendar_ical extends calendar_boupdate
|
|||||||
{
|
{
|
||||||
$participantURL = empty($info['email']) ? '' : 'MAILTO:' . $info['email'];
|
$participantURL = empty($info['email']) ? '' : 'MAILTO:' . $info['email'];
|
||||||
}
|
}
|
||||||
calendar_so::split_status($status, $quantity, $role);
|
|
||||||
if ($role == 'CHAIR')
|
if ($role == 'CHAIR')
|
||||||
{
|
{
|
||||||
$organizerURL = $participantURL;
|
$organizerURL = $participantURL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user