Bug 9414 fix empty Place Alternate Names on import
This commit is contained in:
parent
358428181b
commit
848fe67ada
12
gramps/gen/lib/place.py
Normal file → Executable file
12
gramps/gen/lib/place.py
Normal file → Executable file
@ -577,9 +577,13 @@ class Place(CitationBase, NoteBase, MediaBase, UrlBase, PrimaryObject):
|
|||||||
:param acquisition: instance to merge
|
:param acquisition: instance to merge
|
||||||
:type acquisition: :class:'~.place.Place
|
:type acquisition: :class:'~.place.Place
|
||||||
"""
|
"""
|
||||||
if acquisition.name and (acquisition.name not in self.alt_names):
|
if acquisition.name.value:
|
||||||
self.alt_names.append(acquisition.name)
|
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:
|
for addendum in acquisition.alt_names:
|
||||||
if addendum not in self.alt_names:
|
if addendum.value:
|
||||||
self.alt_names.append(addendum)
|
if addendum != self.name:
|
||||||
|
if addendum not in self.alt_names:
|
||||||
|
self.alt_names.append(addendum)
|
||||||
|
Loading…
Reference in New Issue
Block a user