diff options
author | thomascube <thomas@roundcube.net> | 2012-02-11 13:50:04 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2012-02-11 13:50:04 +0000 |
commit | 4dc22dd63417d6043489898d6ff9ac551c1b4231 (patch) | |
tree | 56941762ef893dc134882b32671dc47f0ab5c1ad /program/steps/addressbook/save.inc | |
parent | ba36dd03f6f7005a6e35ec02e4ff9a58f95be1c3 (diff) |
Backported r5871 to 0.7 release branch
Diffstat (limited to 'program/steps/addressbook/save.inc')
-rw-r--r-- | program/steps/addressbook/save.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/program/steps/addressbook/save.inc b/program/steps/addressbook/save.inc index e93ce9918..9ce0b18f9 100644 --- a/program/steps/addressbook/save.inc +++ b/program/steps/addressbook/save.inc @@ -132,8 +132,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]); |