mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +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
46c4de0305
commit
77b90abd54
@ -184,12 +184,10 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
|||||||
{
|
{
|
||||||
case 'c':
|
case 'c':
|
||||||
// Remove contacts matching excluded accounts
|
// 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))
|
$contact_id = Api\Accounts::id2name($key, 'person_id');
|
||||||
{
|
unset($_results[$contact_id]);
|
||||||
unset($_results[$key]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'l':
|
case 'l':
|
||||||
|
Loading…
Reference in New Issue
Block a user