mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
"fixed for bug #1011: Mail all participants -dosen't fill in members of groups"
This commit is contained in:
parent
fbc9a8806c
commit
810aa25ebd
@ -534,12 +534,24 @@ class uiforms extends uical
|
||||
|
||||
if (is_numeric($uid) && $GLOBALS['egw']->accounts->get_type($uid) == 'u')
|
||||
{
|
||||
if (!($email = $GLOBALS['egw']->accounts->id2name($uid,'account_email'))) continue;
|
||||
|
||||
$GLOBALS['egw']->accounts->get_account_name($uid,$lid,$firstname,$lastname);
|
||||
|
||||
$to[] = $firstname.' '.$lastname.
|
||||
' <'.$GLOBALS['egw']->accounts->id2name($uid,'account_email').'>';
|
||||
|
||||
$to[] = $firstname.' '.$lastname.' <'.$email.'>';
|
||||
}
|
||||
if ($uid{0} == 'c' )
|
||||
elseif ($uid < 0)
|
||||
{
|
||||
foreach($GLOBALS['egw']->accounts->members($uid,true) as $uid)
|
||||
{
|
||||
if (!($email = $GLOBALS['egw']->accounts->id2name($uid,'account_email'))) continue;
|
||||
|
||||
$GLOBALS['egw']->accounts->get_account_name($uid,$lid,$firstname,$lastname);
|
||||
|
||||
$to[] = $firstname.' '.$lastname.' <'.$email.'>';
|
||||
}
|
||||
}
|
||||
elseif ($uid{0} == 'c' )
|
||||
{
|
||||
if (!is_object($GLOBALS['egw']->contacts))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user