thomascube
2011-05-12 e848180aaa9640de871796ca1a3e4f8110701fd6
program/steps/addressbook/func.inc
@@ -346,10 +346,9 @@
        // render head section with name fields (not a regular list of rows)
        if ($section == 'head') {
            $content = '';
            // TODO: use the save name composition function as in save.inc
            $names_arr = array($record['prefix'], $record['firstname'], $record['middlename'], $record['surname'], $record['suffix']);
            if ($record['name'] == join(' ', array_filter($names_arr)))
            // unset display name if it is composed from name parts (same composition function as in save.inc)
            if ($record['name'] == rcube_addressbook::compose_display_name(array('name' => '') + $record))
              unset($record['name']);
            // group fields