summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/addressbook/save.inc
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-11 11:28:58 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2012-02-11 11:28:58 +0000
commit220e993edcdcf9e5c4e3b8a1bacf9ac55468295b (patch)
treec26b1a2bdab7f4668e20f0e8d2e9bdacae51f60a /roundcubemail/program/steps/addressbook/save.inc
parent2f3bfecc096508226f66eaa152c65087c31ec9fe (diff)
User configurable setting how to display contact names in list
git-svn-id: https://svn.roundcube.net/trunk@5871 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/addressbook/save.inc')
-rw-r--r--roundcubemail/program/steps/addressbook/save.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/roundcubemail/program/steps/addressbook/save.inc b/roundcubemail/program/steps/addressbook/save.inc
index f584a0e6a..038b9057f 100644
--- a/roundcubemail/program/steps/addressbook/save.inc
+++ b/roundcubemail/program/steps/addressbook/save.inc
@@ -135,8 +135,7 @@ if (!empty($cid))
$a_js_cols = array();
$record = $CONTACTS->get_record($newcid ? $newcid : $cid, true);
$record['email'] = reset($CONTACTS->get_col_values('email', $record, true));
- if (empty($record['name']))
- $record['name'] = rcube_addressbook::compose_display_name($record, true);
+ $record['name'] = rcube_addressbook::compose_list_name($record);
foreach (array('name', 'email') as $col)
$a_js_cols[] = Q((string)$record[$col]);