5224: NarWeb, associations table appends 1 to person name

svn: r18136
This commit is contained in:
Michiel Nauta 2011-09-09 21:09:24 +00:00
parent fc6732c949
commit 992f862c32

View File

@ -4521,14 +4521,14 @@ class IndividualPage(BasePage):
for person_ref in assoclist:
if person_ref.ref not in self.report.person_handles:
continue
continue # TODO why skip persons?
trow = Html("tr")
tbody += trow
person = self.report.database.get_person_from_handle(person_ref.ref)
url = self.report.build_url_fname_html(person.handle, "ppl", True)
person_name = self.get_name(person)
person_link = Html("a", person_name, _NAME_STYLE_DEFAULT, href=url, title=html_escape(person_name))
person_link = self.person_link(url, person,
_NAME_STYLE_DEFAULT, gid=person.get_gramps_id())
index = 0
for data in [