From f0b3a50d0f7713a4085e9764ad0a5eaf2f3ddc41 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 9 Mar 2017 13:16:57 -0700 Subject: [PATCH] Always hide the contacts associated with user accounts from calendar owner options, we just show the accounts. --- calendar/inc/class.calendar_owner_etemplate_widget.inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php index 51959bae01..44b1ef8cc4 100644 --- a/calendar/inc/class.calendar_owner_etemplate_widget.inc.php +++ b/calendar/inc/class.calendar_owner_etemplate_widget.inc.php @@ -161,11 +161,10 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist if($type == '') { $account_options = $options + array('account_type' => 'both'); - $_results += Api\Accounts::link_query($query, $account_options); + $_results += $remove_contacts = Api\Accounts::link_query($query, $account_options); if (!empty($_REQUEST['checkgrants'])) { $grants = $GLOBALS['egw']->acl->get_grants('calendar'); - $remove_contacts = array_diff_key($_results, $grants); $_results = array_intersect_key($_results, $grants); } }