bug 9458, fix Import Vcard can create multiple surnames with all selected as 'Primary'

This commit is contained in:
prculley 2016-10-24 15:40:57 -05:00
parent 05d4cc39e3
commit 2a55fd268c

View File

@ -354,6 +354,7 @@ class VCardParser(object):
surname.set_surname(sname.strip())
surname.set_prefix(prefix.strip())
name.add_surname(surname)
name.set_primary_surname()
if len(data_fields) > 1 and data_fields[1].strip():
given_name = ' '.join(self.unesc(