Commit 9cc36c30 authored by Sriram Karra's avatar Sriram Karra

Handle contacts without a name while synching to carddav

Fixes: https://github.com/skarra/ASynK/issues/70
parent 8be3acb1
......@@ -475,8 +475,8 @@ class CDContact(Contact):
if n:
vco.n.value.suffix = self._expand(n)
if self.get_disp_name():
vco.add('fn')
if self.get_disp_name():
vco.fn.value = self.get_disp_name()
if self.get_gender():
......
BEGIN:VCARD
VERSION:3.0
PRODID:-//ASynK v2.0.0-rc2+//EN
UID:7aecd057-3cf9-11e4-acf2-20c9d0851eb3
REV:20140915T165813Z
X-ASYNK-CREATED:20130804T102215Z
X-ASYNK-SYNCTAG-TESTBBCD-BB:bc1d00c7-fcef-11e2-b4c3-3c07541b9945
END:VCARD
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment