mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
handling double-mailing to participants by checking the mailadress list before adding
This commit is contained in:
parent
dd41d422e9
commit
6e0d963eb7
@ -647,6 +647,7 @@ class calendar_uiforms extends calendar_ui
|
||||
|
||||
foreach($event['participants'] as $uid => $status)
|
||||
{
|
||||
$toadd = '';
|
||||
if ($status == 'R' || $uid == $this->user) continue;
|
||||
|
||||
if (is_numeric($uid) && $GLOBALS['egw']->accounts->get_type($uid) == 'u')
|
||||
@ -655,7 +656,8 @@ class calendar_uiforms extends calendar_ui
|
||||
|
||||
$GLOBALS['egw']->accounts->get_account_name($uid,$lid,$firstname,$lastname);
|
||||
|
||||
$to[] = $firstname.' '.$lastname.' <'.$email.'>';
|
||||
$toadd = $firstname.' '.$lastname.' <'.$email.'>';
|
||||
if (!in_array($toadd,$to)) $to[] = $toadd;
|
||||
}
|
||||
elseif ($uid < 0)
|
||||
{
|
||||
@ -665,7 +667,8 @@ class calendar_uiforms extends calendar_ui
|
||||
|
||||
$GLOBALS['egw']->accounts->get_account_name($uid,$lid,$firstname,$lastname);
|
||||
|
||||
$to[] = $firstname.' '.$lastname.' <'.$email.'>';
|
||||
$toadd = $firstname.' '.$lastname.' <'.$email.'>';
|
||||
if (!in_array($toadd,$to)) $to[] = $toadd;
|
||||
}
|
||||
}
|
||||
elseif(($info = $this->bo->resource_info($uid)))
|
||||
|
Loading…
Reference in New Issue
Block a user