Merge pull request #166 from prculley/bug8729m

bug 8729 place names empty if Gedcom ADDR record contains no street
This commit is contained in:
Doug Blank 2016-06-02 15:35:00 -04:00
commit 063533ab1e

View File

@ -5569,8 +5569,8 @@ class GedcomParser(UpdateCallback):
# Create the Place Details (it is committed with the event) # Create the Place Details (it is committed with the event)
place_detail = Place() place_detail = Place()
place_detail.set_name(PlaceName(value=location.get_street())) place_detail.set_name(PlaceName(value=title))
place_detail.set_title(location.get_street()) place_detail.set_title(title)
# For RootsMagic etc. Place Details e.g. address, hospital, cemetary # For RootsMagic etc. Place Details e.g. address, hospital, cemetary
place_detail.set_type((PlaceType.CUSTOM, _("Detail"))) place_detail.set_type((PlaceType.CUSTOM, _("Detail")))
placeref = PlaceRef() placeref = PlaceRef()