From 848fe67ada6693b8ff52c21ecb2681b0d9a60f38 Mon Sep 17 00:00:00 2001 From: prculley Date: Thu, 12 May 2016 09:27:12 -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 8c27b16c0..ba7f9a9ca --- a/gramps/gen/lib/place.py +++ b/gramps/gen/lib/place.py @@ -577,9 +577,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)