Bug 403174

Summary: KAddressBook looses contact birthdays when merging two or more contacts
Product: [Applications] kaddressbook Reporter: Dennis Schridde <dschridde+kde>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel, tokoe
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.10.2

Description Dennis Schridde 2019-01-13 13:49:35 UTC
SUMMARY
KAddressBook looses contact birthdays when merging two or more contacts

STEPS TO REPRODUCE
1. Have a contact with birthday data and with duplicates
2. Select them using ctrl+click or shift+click
3. Tools > Merge Contacts
4. Mark the contacts to merge, again
5. Click "merge"

OBSERVED RESULT
The merged contacts has no birthday information anymore

EXPECTED RESULT
Birthday information should be kept

SOFTWARE/OS VERSIONS
Linux: 4.20.1
KDE Plasma Version: 5.10.1
KDE Applications Version: 18.12.1
KDE Frameworks Version: 5.53.0
Qt Version: 5.11.3
Comment 1 Dennis Schridde 2019-01-13 13:50:47 UTC
The addressbook data comes from a NextCloud instance, via CardDAV.
Comment 2 Dennis Schridde 2019-01-13 13:52:56 UTC
Not reproducible with every contact. Possible precondition: One contact has a birthday set, while the other does not.
Comment 3 Laurent Montel 2019-01-14 07:52:17 UTC
I confirm it.
Comment 4 Laurent Montel 2019-01-14 12:48:14 UTC
Git commit 079955d78d0ba6e1a1cafae91a669253a400acdb by Laurent Montel.
Committed on 14/01/2019 at 12:47.
Pushed by mlaurent into branch 'Applications/18.12'.

Fix Bug 403174 - KAddressBook looses contact birthdays when merging two or more contacts

FIXED-IN: 5.10.2

M  +5    -2    kaddressbook/plugins/mergelib/autotests/mergecontactstest.cpp
M  +8    -4    kaddressbook/plugins/mergelib/job/mergecontacts.cpp
M  +3    -3    kaddressbook/plugins/mergelib/searchduplicate/searchduplicateresultwidget.cpp

https://commits.kde.org/kdepim-addons/079955d78d0ba6e1a1cafae91a669253a400acdb