mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-22 19:01:43 +02: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)
|
foreach($event['participants'] as $uid => $status)
|
||||||
{
|
{
|
||||||
|
$toadd = '';
|
||||||
if ($status == 'R' || $uid == $this->user) continue;
|
if ($status == 'R' || $uid == $this->user) continue;
|
||||||
|
|
||||||
if (is_numeric($uid) && $GLOBALS['egw']->accounts->get_type($uid) == 'u')
|
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);
|
$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)
|
elseif ($uid < 0)
|
||||||
{
|
{
|
||||||
@ -665,7 +667,8 @@ class calendar_uiforms extends calendar_ui
|
|||||||
|
|
||||||
$GLOBALS['egw']->accounts->get_account_name($uid,$lid,$firstname,$lastname);
|
$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)))
|
elseif(($info = $this->bo->resource_info($uid)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user