mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-12 19:14:10 +01:00
Calendar - Lookup person_id and filter by that, in case account name is different from contact file_as
This commit is contained in:
parent
160c1120f9
commit
5e1cc74f76
@ -184,12 +184,10 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
||||
{
|
||||
case 'c':
|
||||
// Remove contacts matching excluded accounts
|
||||
foreach($_results as $key => $title)
|
||||
foreach($remove_contacts as $key => $title)
|
||||
{
|
||||
if(in_array($title, $remove_contacts) || is_array($title) && in_array($title['label'], $remove_contacts))
|
||||
{
|
||||
unset($_results[$key]);
|
||||
}
|
||||
$contact_id = Api\Accounts::id2name($key, 'person_id');
|
||||
unset($_results[$contact_id]);
|
||||
}
|
||||
break;
|
||||
case 'l':
|
||||
|
Loading…
Reference in New Issue
Block a user