summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/addressbook
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-03-14 08:27:18 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-03-14 08:27:18 +0000
commit09dfce39aec27a6abfaa9d9cb4c91ede9e444986 (patch)
tree0de7131619714a7e9145b7acf1c1a470d7142d5d /roundcubemail/program/steps/addressbook
parentc8fec96d3cc9f1ba3771d8c00e8ff088e687d5ef (diff)
Request all needed fields from address book backends (#1488394)
git-svn-id: https://svn.roundcube.net/trunk@6004 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook')
-rw-r--r--roundcubemail/program/steps/addressbook/delete.inc2
-rw-r--r--roundcubemail/program/steps/addressbook/list.inc4
-rw-r--r--roundcubemail/program/steps/addressbook/search.inc2
3 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/addressbook/delete.inc b/roundcubemail/program/steps/addressbook/delete.inc
index f19dcf482..1e2142c9c 100644
--- a/roundcubemail/program/steps/addressbook/delete.inc
+++ b/roundcubemail/program/steps/addressbook/delete.inc
@@ -86,7 +86,7 @@ if (($search_request = $_REQUEST['_search']) && isset($_SESSION['search'][$searc
$source->set_search_set($set);
// get records
- $result = $source->list_records(array('name', 'email'));
+ $result = $source->list_records(array('name', 'firstname', 'surname', 'email'));
if (!$result->count) {
unset($search[$s]);
diff --git a/roundcubemail/program/steps/addressbook/list.inc b/roundcubemail/program/steps/addressbook/list.inc
index 91852a421..5876f3c6f 100644
--- a/roundcubemail/program/steps/addressbook/list.inc
+++ b/roundcubemail/program/steps/addressbook/list.inc
@@ -46,7 +46,7 @@ if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search
$source->set_search_set($set);
// 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;
@@ -76,7 +76,7 @@ else {
$CONTACTS = rcmail_contact_source(null, true);
// get contacts for this user
- $result = $CONTACTS->list_records(array('name'));
+ $result = $CONTACTS->list_records(array('name', 'firstname', 'surname', 'email'));
if (!$result->count && $result->searchonly) {
$OUTPUT->show_message('contactsearchonly', 'notice');
diff --git a/roundcubemail/program/steps/addressbook/search.inc b/roundcubemail/program/steps/addressbook/search.inc
index 2c6548184..6422bc72d 100644
--- a/roundcubemail/program/steps/addressbook/search.inc
+++ b/roundcubemail/program/steps/addressbook/search.inc
@@ -182,7 +182,7 @@ function rcmail_contact_search()
}
// 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'];