Fixed the center person to be using the actual center person option in NarrativeWeb.
svn: r15061
This commit is contained in:
parent
734c907fcb
commit
ca25394c46
@ -896,14 +896,12 @@ class BasePage(object):
|
|||||||
|
|
||||||
# optional "link-home" feature; see bug report #2736
|
# optional "link-home" feature; see bug report #2736
|
||||||
if self.report.options['linkhome']:
|
if self.report.options['linkhome']:
|
||||||
home_person = db.get_default_person()
|
center_person = db.get_person_from_gramps_id(self.report.options['pid'])
|
||||||
if home_person:
|
if center_person:
|
||||||
home_person_url = self.report.build_url_fname_html(
|
home_person_url = self.report.build_url_fname_html(
|
||||||
home_person.handle,
|
center_person.handle, "ppl", self.up)
|
||||||
"ppl",
|
|
||||||
self.up)
|
|
||||||
|
|
||||||
home_person_name = self.get_name(home_person)
|
home_person_name = self.get_name(center_person)
|
||||||
msg += _(' Created for <a href = "%s">%s</a>') % (
|
msg += _(' Created for <a href = "%s">%s</a>') % (
|
||||||
home_person_url, home_person_name)
|
home_person_url, home_person_name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user