From 892c5f8f833a3e1891c0943394a7cb6d1032fd34 Mon Sep 17 00:00:00 2001 From: Ralf Becker <ralfbecker@outdoor-training.de> Date: Tue, 1 May 2007 14:26:48 +0000 Subject: [PATCH] "fix for bug #584: Problem when sorting accounts in the account-selection popup" --- phpgwapi/inc/class.accounts_sql.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.accounts_sql.inc.php b/phpgwapi/inc/class.accounts_sql.inc.php index 24d3089972..899b954f40 100644 --- a/phpgwapi/inc/class.accounts_sql.inc.php +++ b/phpgwapi/inc/class.accounts_sql.inc.php @@ -320,6 +320,7 @@ class accounts_backend */ function get_list($_type='both', $start = null,$sort = '', $order = '', $query = '', $offset = null, $query_type='') { + //echo "<p>accounts_sql($_type,$start,$sort,$order,$query,$offset,$query_type)</p>\n"; if (!is_object($GLOBALS['egw']->contacts)) { $GLOBALS['egw']->contacts =& CreateObject('phpgwapi.contacts'); @@ -329,7 +330,7 @@ class accounts_backend 'account_lastname' => 'n_family', 'account_email' => 'contact_email', ); - if (isset($order2contact[$order])) $order = $account2contact[$order]; + if (isset($order2contact[$order])) $order = $order2contact[$order]; if ($sort) $order .= ' '.$sort; switch($_type)