From 7810068ed0465d5c161b2be9dbf684d943a63fa1 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 14 May 2012 18:00:19 +0000 Subject: [PATCH] Fix SQL error when exporting sorted by contact_id --- addressbook/inc/class.addressbook_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 92195b78ca..5fac455eac 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -1285,7 +1285,7 @@ class addressbook_ui extends addressbook_bo $order = "$query[order] IS NULL,$query[order] $sort,org_name $sort,n_family $sort,n_given $sort"; break; case 'contact_id': - $order = "$query[order] $sort"; + $order = "egw_addressbook.$query[order] $sort"; } if ($query['searchletter']) // only show contacts if the order-criteria starts with the given letter {