From 2a55fd268ce54142b651e20fafdd11f01d8a16bd Mon Sep 17 00:00:00 2001 From: prculley Date: Mon, 24 Oct 2016 15:40:57 -0500 Subject: [PATCH] bug 9458, fix Import Vcard can create multiple surnames with all selected as 'Primary' --- gramps/plugins/importer/importvcard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gramps/plugins/importer/importvcard.py b/gramps/plugins/importer/importvcard.py index 9495afb5f..73be6ebd9 100644 --- a/gramps/plugins/importer/importvcard.py +++ b/gramps/plugins/importer/importvcard.py @@ -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(