From 053538bf60e354a64664fb9a992cbbda37d70f76 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 5 Mar 2012 19:59:07 +0000 Subject: - Merge r5966 from trunk (#1488375) --- program/steps/addressbook/export.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program/steps/addressbook/export.inc') diff --git a/program/steps/addressbook/export.inc b/program/steps/addressbook/export.inc index 8ba1c08b6..988dabf51 100644 --- a/program/steps/addressbook/export.inc +++ b/program/steps/addressbook/export.inc @@ -24,6 +24,7 @@ // Use search result if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search']])) { + $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); $search = (array)$_SESSION['search'][$_REQUEST['_search']]; $records = array(); @@ -41,7 +42,7 @@ if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search while ($row = $result->next()) { $row['sourceid'] = $s; - $key = $row['name'] . ':' . $row['sourceid']; + $key = rcmail_contact_key($row, $sort_col); $records[$key] = $row; } unset($result); -- cgit v1.2.3