diff --git a/program/steps/mail/autocomplete.inc b/program/steps/mail/autocomplete.inc index 809bd66f1..31480ca76 100644 --- a/program/steps/mail/autocomplete.inc +++ b/program/steps/mail/autocomplete.inc @@ -92,7 +92,12 @@ if (!empty($book_types) && strlen($search)) { // skip duplicates if (empty($contacts[$index])) { - $contact = array('name' => $contact, 'type' => $sql_arr['_type']); + $contact = array( + 'name' => $contact, + 'type' => $sql_arr['_type'], + 'id' => $sql_arr['contact_id'], + 'source' => $abook_id, + ); if (($display = rcube_addressbook::compose_search_name($sql_arr, $email, $name)) && $display != $contact['name']) { $contact['display'] = $display;