missing file from #9f9cce8 fix account-selection type groupmembers

This commit is contained in:
Ralf Becker 2020-09-10 11:26:14 +02:00
parent 9556488db5
commit ca9526988f

View File

@ -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);