gza/oczpush — pull request #13 by jochenwierum (2012-12-18 14:31:00+00:00)
Title: Attributes of contacts are lost when synchronizing

When synchronizing, all phone numbers are transfered, but their attributes (e.g. is this a mobile number or a home number) are lost. This was the case when syncing in both direction.

I'm using version 2ca17e39788e849787dbd0df2f0879de954b15da of oczpush, ownCloud in Version 4.5.4 with mysql as backend (but the data were initially imported using the thunderbird plugin) and a Windows Phone 7.5.

I observed that the script expects something like ``TEL;TYPE=cell`` while my Database contains ``TEL;TYPE=CELL``. So ``TYPE=CELL`` is discarded completely. I'm not really in VCard, so I'm not really sure what exactly the problem is. I patched oczpush so it accepts uppercase values in the type declaration, but I'm not sure if this is the real solution.

The other way around (when importing Data from my phone) the newly created entry was ``TEL;CELL`` instead of ``TEL;TYPE=CELL``. OwnCloud ignored this value, too. So I patched the import to contain the ``TYPE=``.

I'm really not sure if this works only for me or if this is a real bug in oczpush. Mine version works, but I could test it only with my installation of oc and my phone. Perhaps it is usefull for someone else?