thomascube
2012-03-14 a621a9d7ecf334c4894ef8f5168eb6208e5ae0e4
program/steps/addressbook/search.inc
@@ -147,6 +147,7 @@
    $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']);
@@ -181,11 +182,11 @@
        }
        // get records
        $result = $source->list_records(array('name', 'email'));
        $result = $source->list_records(array('name', 'firstname', 'surname', 'email'));
        while ($row = $result->next()) {
            $row['sourceid'] = $s['id'];
            $key = $row['name'] . ':' . $row['sourceid'];
            $key = rcmail_contact_key($row, $sort_col);
            $records[$key] = $row;
        }