mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
also show external organiser in textual replies and remove him from participants
This commit is contained in:
parent
8e419f1c1a
commit
f6a6412d25
@ -1941,7 +1941,21 @@ class calendar_boupdate extends calendar_bo
|
|||||||
if (isset($event['participants']) && is_array($event['participants']) && !empty($event['participants']))
|
if (isset($event['participants']) && is_array($event['participants']) && !empty($event['participants']))
|
||||||
{
|
{
|
||||||
$participants = $this->participants($event,true);
|
$participants = $this->participants($event,true);
|
||||||
|
|
||||||
|
// fix external organiser to not be included as participant and shown as organiser
|
||||||
|
foreach($event['participants'] as $uid => $status)
|
||||||
|
{
|
||||||
|
$role = $quantity = null;
|
||||||
|
calendar_so::split_status($status, $quantity, $role);
|
||||||
|
if ($role == 'CHAIR' && $status == 'D' && !is_numeric($uid))
|
||||||
|
{
|
||||||
|
$var['owner']['data'] = $this->participant_name($uid);
|
||||||
|
unset($participants[$uid]);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$var['participants'] = Array(
|
$var['participants'] = Array(
|
||||||
'field' => lang('Participants'),
|
'field' => lang('Participants'),
|
||||||
'data' => $participants
|
'data' => $participants
|
||||||
|
Loading…
Reference in New Issue
Block a user