From 7e456e996c5e10bc70223295dc833920ffcd52aa Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Thu, 8 Jul 2010 22:56:11 +0000 Subject: [PATCH] NarrativeWeb: Fix for bug #4098. Place name not retrurning proper answer. svn: r15628 --- src/plugins/webreport/NarrativeWeb.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index e8eddec5e..375ff294e 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -6273,7 +6273,11 @@ def __get_place_keyname(db, handle): place = db.get_place_from_handle(handle) if place: - return ReportUtils.place_name(db, handle) + place_name = ReportUtils.place_name(db, handle) + if place_name: + return place_name + else: + return "" else: return ""