Fixes: Accidental deletion of all address properties when saving a contact
authorMathias Hasselmann <mathias@openismus.com>
Mon, 14 Jun 2010 22:30:21 +0000 (00:30 +0200)
committerMurray Cumming <murrayc@murrayc.com>
Thu, 17 Jun 2010 07:40:39 +0000 (09:40 +0200)
commit506eb706728b6099d3b14eb1a8926b06f485072f
treeae2ff5117691bfe6896986577c26e3a84286d54d
parent4612a94bfebb7eef545053b4628a592d6a45b162
Fixes: Accidental deletion of all address properties when saving a contact

RevBy: TrustMe
Details:

 * src/engine/contactsaverequest2.cpp: collectDeletions():
   Skip annoymous IRI schemes when collecting deletions as deleting them would
   wipe all instances.

 * tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-1.rq:
 * tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-2.rq:
 * tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-3.rq:
 * tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-4.rq:
   Update reference queries to cover removal of phone number subtypes.
src/engine/contactsaverequest2.cpp
tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-1.rq
tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-2.rq
tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-3.rq
tests/ut_qtcontacts_trackerplugin_querybuilder/data/202-save-request-4.rq