Fix SQL error when exporting sorted by contact_id

This commit is contained in:
Nathan Gray 2012-05-14 18:00:19 +00:00
parent 564d87f68a
commit 7810068ed0

View File

@ -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"; $order = "$query[order] IS NULL,$query[order] $sort,org_name $sort,n_family $sort,n_given $sort";
break; break;
case 'contact_id': 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 if ($query['searchletter']) // only show contacts if the order-criteria starts with the given letter
{ {