From 012b49838c4bce45534637f7a8a28dc5b24d6b75 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 6 May 2014 20:33:40 +0000 Subject: [PATCH] Send value/label pairs to preserve sorting --- phpgwapi/inc/class.egw_framework.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.egw_framework.inc.php b/phpgwapi/inc/class.egw_framework.inc.php index 1dc4c5996c..95d409e955 100644 --- a/phpgwapi/inc/class.egw_framework.inc.php +++ b/phpgwapi/inc/class.egw_framework.inc.php @@ -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);