summaryrefslogtreecommitdiff
path: root/program/steps/addressbook/search.inc
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-07-26 17:18:38 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-07-26 17:18:38 +0200
commitbaecd8becccd7786632c1cda895123293ceb1408 (patch)
treee33c882fe684e73fab73d77b1b16fe54ce9754ec /program/steps/addressbook/search.inc
parent5bc1233de808442f8d412bf4394fda05b22f41d2 (diff)
Move the hard-coded list of fields used to list contacts to a central location
Diffstat (limited to 'program/steps/addressbook/search.inc')
-rw-r--r--program/steps/addressbook/search.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/addressbook/search.inc b/program/steps/addressbook/search.inc
index f83eb9fd6..d31e54b1a 100644
--- a/program/steps/addressbook/search.inc
+++ b/program/steps/addressbook/search.inc
@@ -145,6 +145,7 @@ function rcmail_contact_search()
$search_set = array();
$records = array();
$sort_col = $RCMAIL->config->get('addressbook_sort_col', 'name');
+ $afields = $RCMAIL->config->get('contactlist_fields');
foreach ($sources as $s) {
$source = $RCMAIL->get_address_book($s['id']);
@@ -179,7 +180,7 @@ function rcmail_contact_search()
}
// get records
- $result = $source->list_records(array('name', 'firstname', 'surname', 'email'));
+ $result = $source->list_records($afields);
while ($row = $result->next()) {
$row['sourceid'] = $s['id'];