Closed Bug 457636 Opened 18 years ago Closed 17 years ago

Displays empty or incorrectly filled columns 'Name' for contacts with the empty field 'Display'

Categories

(Thunderbird :: Address Book, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: andrey.lazarev, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2 Build Identifier: version 2.0.0.17 (20080914) If the Address Book have some records with the empty 'Display' field - it may display the empty field 'Name'. Sometimes the field 'Name' may be filled from the first part of the e-mail (everything before '@' is displayed as content of the 'Name' field). Reproducible: Always Steps to Reproduce: 1. Create new card; 2. Enter 'First name', 'Last name', 'E-mail'; 3. *Delete* everything from the 'Display' field; 4. Save and view the card. Actual Results: You will se the card with the first part of the 'E-mail' field in place of the 'Name'. If we've entered something like this: Name: Adam Last name: Smyth e-mail: a.s@dot.com Then you will see 'a.s' as the 'Name'. Expected Results: If the field 'Display' is left empty - Thunderbird should always check for 'Name' and 'Last name' first prior to getting the value from the 'E-mail' field. Sometimes different compainies uses 'third part software' to synchronize contacts and such software sometimes leave the field 'Display' blank after the sync. This logic sounds good: if (Name.Length == 0 && Lastname.Length == 0) { Display = Email; } else { Display = Name + ' ' + Lastname; } Something like this
Version: unspecified → 2.0
The code is working as expected. If you don't want to use the display name, then you can go to View -> Show Name As, and select one of the other options there. This will then use first and last name as expected (and be entirely consistent).
Per comment 1, RESO INVA.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.