Bug 70481 - 'name' field not shown for contact's birthday entry
Summary: 'name' field not shown for contact's birthday entry
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: summary (show other bugs)
Version: 0.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-15 08:09 UTC by Amit Shah
Modified: 2004-02-23 12:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Shah 2003-12-15 08:09:27 UTC
Version:           0.1 (using KDE 3.1.94 (3.2 Beta 2), compiled sources)
Compiler:          gcc version 3.3.2 (Debian)
OS:          Linux (i686) release 2.6.0-test11

The Birthday summary shows 6 entries and the last birthday entry is after 62 days. The name for this entry isn't shown, the status bar just shows mailto: when the mouse is positioned where the name is supposed to be (the cursor changes to the 'hand' when hovered). On clicking on it, however, a new message composer is started, which has the correct name and email address.
Comment 1 Amit Shah 2003-12-20 08:11:30 UTC
I think I've found out the cause of this bug. If the name is too big to fit into the 'name' field, it's not shown. If the name is shortened in the contact plugin and then you see the summary, the short name is shown.

If you rename the contact to the original (long) name again, it's shown in the summary (with the name field now exapanded to fit it in).

This would mean that the 'name' field isn't expanded initially when reading from the contact list.
Comment 2 Tobias Koenig 2004-01-08 16:48:42 UTC
Hi Amit,

I can't reporduce it here... could you attach a screen shot, maybe I can guess whats the bug is with the help of it?
Comment 3 Amit Shah 2004-01-09 06:43:56 UTC
Subject: Re:  'name' field not shown for contact's birthday entry

On Thursday 08 Jan 2004 21:18, Tobias K
Comment 4 Gilles Schintgen 2004-01-12 10:51:47 UTC
I'm having the same problem but it doesn't have to do with long names. There really is enough room to put the names in.
A workaround for names that aren't shown is to edit some text field (e.g. add a letter to a name and then delete it again) and then save the address book. This fixes the invisible name for that one contact. Of course editing all my contacts could take some time...
Perhaps there was some minor change in the file format? (I created my address book with kde 3.1.4 and then upgraded to kde3.2 beta2)
Comment 5 Gilles Schintgen 2004-01-12 11:02:22 UTC
Just found out something important: editing the contact and then saving adds a field to std.vcf.
Before the change there was only one field containing the name, for example:
N:Santa;Claus;;;
after saving it again there is a second one added:
FN:Santa Claus
I guess the summary page always looks for FN (formatted name?) even if it's not there.
Happy fixing ;-)
Comment 6 Amit Shah 2004-01-12 12:55:57 UTC
Subject: Re:  'name' field not shown for contact's birthday entry

On Monday 12 Jan 2004 15:32, Gilles Schintgen wrote:
> ------- Just found out something important: editing the contact and then
> saving adds a field to std.vcf. Before the change there was only one field
> containing the name

Gilles, does this happen for each for your contacts? In my case, it happened 
just once.

I too upgraded from 3.1.4, so may be this could be the reason.
Comment 7 Gilles Schintgen 2004-01-12 13:48:02 UTC
As it seems only the contacts I edited are changed when saving (which seems logical to me). In other words, to "correct" my whole address book I'd have to edit every single contact in my list and then save.
Comment 8 Micha Glave 2004-01-26 09:30:23 UTC
I can fully confirm this. After editing a contact and restarting kontact. The names of the birthday-having-person is shown. 

1. My addressbook was created with kde-3.1.2. 
2. After resaving the contact the addressbook-entry get the FN:-Field added. 
3a. The birthdaylist is now empty.
3b. After restarting Kontact it is shown correct (filled).

Can this change made automaticly? 

PS: Why it is necessary to restart Kontact?
Comment 9 Tobias Koenig 2004-02-19 19:34:22 UTC
CVS commit by tokoe: 

Use Addressee::realName(). This method returns assembled name if no formatted
name is set.

CCMAIL:70481-done@bugs.kde.org


  M +1 -1      kabsummarywidget.cpp   1.30


--- kdepim/kontact/plugins/kaddressbook/kabsummarywidget.cpp  #1.29:1.30
@@ -157,5 +157,5 @@ void KABSummaryWidget::updateView()
       urlLabel->installEventFilter(this);
       urlLabel->setURL( (*addrIt).addressee.uid() );
-      urlLabel->setText( (*addrIt).addressee.formattedName() );
+      urlLabel->setText( (*addrIt).addressee.realName() );
       mLayout->addWidget( urlLabel, counter, 3 );
       mLabels.append( urlLabel );


Comment 10 Michael 2004-02-23 12:43:04 UTC
Can confirm this.
After upgrading from 3.1.4 I only see a few names in the birthday list.

To fix it localy:
right click
view contact 
edit name
click on automaticaly resolve name ("Namen automatisch auswerten") twice!

now it works (for this contact)