From e2b781a22188953bb57a290fae345b93edcac310 Mon Sep 17 00:00:00 2001 From: prculley Date: Wed, 11 May 2016 09:50:07 -0500 Subject: [PATCH] Bug 9414 fix empty Place Alternate Names on import --- gramps/gen/lib/place.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) mode change 100644 => 100755 gramps/gen/lib/place.py diff --git a/gramps/gen/lib/place.py b/gramps/gen/lib/place.py old mode 100644 new mode 100755 index 2bfa87529..6c24cf0fd --- a/gramps/gen/lib/place.py +++ b/gramps/gen/lib/place.py @@ -631,9 +631,13 @@ class Place(CitationBase, NoteBase, MediaBase, UrlBase, PrimaryObject): :param acquisition: instance to merge :type acquisition: :class:'~.place.Place """ - if acquisition.name and (acquisition.name not in self.alt_names): - self.alt_names.append(acquisition.name) + if acquisition.name.value: + if acquisition.name != self.name: + if acquisition.name not in self.alt_names: + self.alt_names.append(acquisition.name) for addendum in acquisition.alt_names: - if addendum not in self.alt_names: - self.alt_names.append(addendum) + if addendum.value: + if addendum != self.name: + if addendum not in self.alt_names: + self.alt_names.append(addendum)