diff --git a/ChangeLog b/ChangeLog index 1a15033f7..e1232da78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-03-26 Brian Matherly + * src/plugins/DetDescendantReport.py: fix for multiple notes. + 2007-03-26 Brian Matherly * src/plugins/DetAncestralReport.py: fix for multiple notes. diff --git a/src/plugins/DetDescendantReport.py b/src/plugins/DetDescendantReport.py index 5213ed2bc..f4e659194 100644 --- a/src/plugins/DetDescendantReport.py +++ b/src/plugins/DetDescendantReport.py @@ -297,12 +297,14 @@ class DetDescendantReport(Report): if self.includeMates: self.write_mate(person) - if person.get_note() != "" and self.includeNotes: + notelist = person.get_note_list() + if len(notelist) > 0 and self.includeNotes: self.doc.start_paragraph("DDR-NoteHeader") self.doc.write_text(_("Notes for %s") % name) self.doc.end_paragraph() - self.doc.write_note(person.get_note(),person.get_note_format(), - "DDR-Entry") + for notehandle in notelist: + note = self.database.get_note_from_handle(notehandle) + self.doc.write_note(note.get(),note.get_format(),"DDR-Entry") first = True if self.includeNames: