forked from extern/egroupware
"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 (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);
|
$GLOBALS['egw']->accounts->get_account_name($uid,$lid,$firstname,$lastname);
|
||||||
|
|
||||||
$to[] = $firstname.' '.$lastname.
|
$to[] = $firstname.' '.$lastname.' <'.$email.'>';
|
||||||
' <'.$GLOBALS['egw']->accounts->id2name($uid,'account_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))
|
if (!is_object($GLOBALS['egw']->contacts))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user