From ca9526988f8c2820bb7b11143846f5a51a3650c8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 10 Sep 2020 11:26:14 +0200 Subject: [PATCH] missing file from #9f9cce8 fix account-selection type groupmembers --- api/src/Framework.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/api/src/Framework.php b/api/src/Framework.php index 310c23eedc..61ef450d4a 100644 --- a/api/src/Framework.php +++ b/api/src/Framework.php @@ -1591,17 +1591,8 @@ abstract class Framework extends Framework\Extra $contact_obj = new Contacts(); foreach($list as $type => &$accounts) { - $options = array('account_type' => $type) + $accounts; - $key_pair = Accounts::link_query('',$options); - $accounts = array(); - foreach($key_pair as $account_id => $name) - { - $contact = $contact_obj->read('account:'.$account_id, true); - $accounts[] = array('value' => $account_id, 'label' => $name, 'icon' => self::link('/api/avatar.php', array( - 'contact_id' => $contact['id'], - 'etag' => $contact['etag'] - ))); - } + $options = array('account_type' => $type, 'tag_list' => true) + $accounts; + $accounts = Accounts::link_query('',$options); } Json\Response::get()->data($list);