diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-02-11 11:28:58 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-02-11 11:28:58 +0000 |
| commit | 220e993edcdcf9e5c4e3b8a1bacf9ac55468295b (patch) | |
| tree | c26b1a2bdab7f4668e20f0e8d2e9bdacae51f60a /roundcubemail/program/steps/addressbook/func.inc | |
| parent | 2f3bfecc096508226f66eaa152c65087c31ec9fe (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/func.inc')
| -rw-r--r-- | roundcubemail/program/steps/addressbook/func.inc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/roundcubemail/program/steps/addressbook/func.inc b/roundcubemail/program/steps/addressbook/func.inc index f6ce79ed1..f261527e4 100644 --- a/roundcubemail/program/steps/addressbook/func.inc +++ b/roundcubemail/program/steps/addressbook/func.inc @@ -347,13 +347,9 @@ function rcmail_js_contacts_list($result, $prefix='') // format each col foreach ($a_show_cols as $col) { - $val = $row[$col]; - if ($val == '' && $col == 'name') { - $val = rcube_addressbook::compose_display_name($row, true); - } - + $val = $col == 'name' ? rcube_addressbook::compose_list_name($row) : $row[$col]; $a_row_cols[$col] = Q($val); - } + } $OUTPUT->command($prefix.'add_contact_row', $row['ID'], $a_row_cols); } |
