Send value/label pairs to preserve sorting

This commit is contained in:
Nathan Gray 2014-05-06 20:33:40 +00:00
parent 4f2504aafc
commit 012b49838c

View File

@ -2007,7 +2007,12 @@ if ($app == 'home') continue;
foreach($list as $type => &$accounts)
{
$options = array('account_type' => $type) + $accounts;
$accounts = accounts::link_query('',$options);
$key_pair = accounts::link_query('',$options);
$accounts = array();
foreach($key_pair as $account_id => $name)
{
$accounts[] = array('value' => $account_id, 'label' => $name);
}
}
egw_json_response::get()->data($list);