Fix spurious generation of empty 'Alternative Name' in place.merge()

with an empty name

Bug discovered during testing of fix to 8233 (thanks, Enno for
discovering the problem and the fix).
This commit is contained in:
kulath 2015-03-25 18:30:05 +00:00 committed by Ross Gammon
parent e1ff1a78b3
commit a6abc76a74

View File

@ -570,7 +570,7 @@ class Place(CitationBase, NoteBase, MediaBase, UrlBase, PrimaryObject):
:param acquisition: instance to merge
:type acquisition: :class:'~.place.Place
"""
if acquisition.name not in self.alt_names:
if acquisition.name and (acquisition.name not in self.alt_names):
self.alt_names.append(acquisition.name)
for addendum in acquisition.alt_names: