Adenilson / libgcal

Automatically exported from code.google.com/p/libgcal
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Organisation name and title are swaped + FIX #62

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set a organisation and title in KDE addressbook contact 
2. Sync it with google contacts
3. Organisation and title will be swaped in google contact and addressbook

What version of the product are you using? On what operating system?
Libgcal 0.9.4
KDE 4.4.2
akonadi-googledata rev. 1124308
(svn://anonsvn.kde.org/home/kde/trunk/extragear/pim/googledata/)

Please provide any additional information below.
Found out, that the methods 'gcal_contact_get_profission',
'gcal_contact_get_organization', 'gcal_contact_set_profission' and
'gcal_contact_set_organization' are responsible:

gcal_contact_get_profission dealing with contact->org_title but
gcal_contact_set_profission were dealing with contact->org_name and so on

Problem fixed by swaping method names for 'gcal_contact_get_profission' and
'gcal_contact_get_organization'.

See attached file

BTW maybe you could name it _profession instead of _profission.

best regards
HK

Original issue reported on code.google.com by horug...@googlemail.com on 8 May 2010 at 8:00

Attachments:

GoogleCodeExporter commented 9 years ago
Sorry. The fix is to swap method names for 'gcal_contact_set_profission' and
'gcal_contact_set_organization'.

gcal_contact_set_organization: Organization Name: gd:orgName 
gcal_contact_set_profission: Title within Organization: gd:orgTitle

Original comment by horug...@googlemail.com on 10 May 2010 at 11:47