diff options
author | alecpl <alec@alec.pl> | 2012-03-05 19:56:17 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-03-05 19:56:17 +0000 |
commit | 0203f16312bc949a5cf46ce90fa43de9119e23a8 (patch) | |
tree | 5865daa13dac86d01cf4ff74cdf88cb8d56b08e7 /program/steps/addressbook/search.inc | |
parent | 377bc60482628954bcd7bcaca7682ecd9594089c (diff) |
- Fix duplicate names handling in addressbook searches (#1488375)
Diffstat (limited to 'program/steps/addressbook/search.inc')
-rw-r--r-- | program/steps/addressbook/search.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/addressbook/search.inc b/program/steps/addressbook/search.inc index 54d2c4dab..2c6548184 100644 --- a/program/steps/addressbook/search.inc +++ b/program/steps/addressbook/search.inc @@ -147,6 +147,7 @@ function rcmail_contact_search() $sources = $RCMAIL->get_address_sources(); $search_set = array(); $records = array(); + $sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name'); foreach ($sources as $s) { $source = $RCMAIL->get_address_book($s['id']); @@ -185,7 +186,7 @@ function rcmail_contact_search() while ($row = $result->next()) { $row['sourceid'] = $s['id']; - $key = $row['name'] . ':' . $row['sourceid']; + $key = rcmail_contact_key($row, $sort_col); $records[$key] = $row; } |