From ca25394c466df4853b524ff5674720a7d64dd411 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Thu, 8 Apr 2010 05:10:36 +0000 Subject: [PATCH] Fixed the center person to be using the actual center person option in NarrativeWeb. svn: r15061 --- src/plugins/webreport/NarrativeWeb.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 1026a5b24..c22fe4c4e 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -896,14 +896,12 @@ class BasePage(object): # optional "link-home" feature; see bug report #2736 if self.report.options['linkhome']: - home_person = db.get_default_person() - if home_person: + center_person = db.get_person_from_gramps_id(self.report.options['pid']) + if center_person: home_person_url = self.report.build_url_fname_html( - home_person.handle, - "ppl", - self.up) + center_person.handle, "ppl", self.up) - home_person_name = self.get_name(home_person) + home_person_name = self.get_name(center_person) msg += _(' Created for %s') % ( home_person_url, home_person_name)