https://bugs.kde.org/show_bug.cgi?id=340316

            Bug ID: 340316
           Summary: Custom field titles and field types not saved with
                    vCard
           Product: kaddressbook
           Version: unspecified
          Platform: Kubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Only the UUID key and value is saved with the vCard, so when imported back in
you lose the title and field type.

For example...
Favorite Color: Blue (text)
Likes Carrots: [x] (boolean)
...imports back as...
c2547fb3-b58a-4290-bb4e-6cbc32ff2a33: Blue (text)
1d01a796-d646-4359-9094-ac448aaa4c80: true (text)

Reproducible: Always

Steps to Reproduce:
1. Create custom fields for a contact, using various types
2. Export vCard
3. Import vCard

Actual Results:  
Imported contact has custom fields with just the UUID as its title instead of
the custom title, and type information is lost and the value always treated as
text.

Expected Results:  
Custom field titles and type information retained on import because they get
exported with the vCard.

Global custom field titles are retained because their titles are stored outside
of the vCard. However, these also are lost if imported into a different
KAddressBook install, etc.

Right now custom fields are stored like this...
X-KADDRESSBOOK-c2547fb3-b58a-4290-bb4e-6cbc32ff2a33:Blue
X-KADDRESSBOOK-1d01a796-d646-4359-9094-ac448aaa4c80:true

Maybe change it to something like this?...
X-KADDRESSBOOK-CF:text:c2547fb3-b58a-4290-bb4e-6cbc32ff2a33:Favorite Color:Blue
X-KADDRESSBOOK-CF:bool:1d01a796-d646-4359-9094-ac448aaa4c80:Likes Carrots:true

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Kdepim-bugs mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kdepim-bugs

Reply via email to