Merge pull request #258 from prculley/bug9458_42

bug 9458, fix Import Vcard can create multiple surnames with all selected as 'Primary'
This commit is contained in:
Paul Culley 2016-10-24 15:51:11 -05:00 committed by GitHub
commit 4e5112d3fd

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(