mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 08:53:37 +01:00
When adding a mailing list as participant, immediately expand it to contacts
This commit is contained in:
parent
c8ea65828d
commit
ac2abceea3
@ -839,28 +839,6 @@ class calendar_boupdate extends calendar_bo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Mailing lists
|
|
||||||
else if (!is_numeric($userid) && $userid[0] == 'l')
|
|
||||||
{
|
|
||||||
if(!$contact_obj)
|
|
||||||
{
|
|
||||||
$contact_obj = new Api\Contacts();
|
|
||||||
}
|
|
||||||
$options = array('list' => substr($user,1));
|
|
||||||
$contacts = $contact_obj->search('',true,'','','',false,'AND',false,$options);
|
|
||||||
if(!$contacts)
|
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
foreach($contacts as &$contact)
|
|
||||||
{
|
|
||||||
$contact = 'c'.$contact['id'];
|
|
||||||
if ($contact && !isset($to_notify[$contact])) // already added?
|
|
||||||
{
|
|
||||||
$to_notify[$contact] = 'G';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$user_prefs = $GLOBALS['egw_info']['user']['preferences'];
|
$user_prefs = $GLOBALS['egw_info']['user']['preferences'];
|
||||||
$startdate = new Api\DateTime($event['start']);
|
$startdate = new Api\DateTime($event['start']);
|
||||||
|
Loading…
Reference in New Issue
Block a user