From efab48d5ccdf7ac2733f772762a23496daa4769c Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Fri, 19 May 2017 06:48:32 -0700 Subject: [PATCH] 10033: Note isn't included on CIR when it is attached to a name --- gramps/plugins/textreport/indivcomplete.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/textreport/indivcomplete.py b/gramps/plugins/textreport/indivcomplete.py index ec33908e9..c0b0bc602 100644 --- a/gramps/plugins/textreport/indivcomplete.py +++ b/gramps/plugins/textreport/indivcomplete.py @@ -131,6 +131,7 @@ class IndivCompleteReport(Report): filter_option = options.menu.get_option_by_name('filter') self.filter = filter_option.get_filter() self.bibli = None + self.names_notes_list = [] self.section_list = menu.get_option_by_name('sections').get_selected() @@ -220,6 +221,10 @@ class IndivCompleteReport(Report): def write_note(self): notelist = self.person.get_note_list() notelist += self.family_notes_list + if self.names_notes_list: + for note_handle in self.names_notes_list: + if note_handle not in notelist: + notelist += [note_handle] if not notelist: return self.doc.start_table('note','IDS-IndTable') @@ -308,7 +313,8 @@ class IndivCompleteReport(Report): def write_alt_names(self): - if len(self.person.get_alternate_names()) < 1: + alt_names = self.person.get_alternate_names() + if len(alt_names) < 1: return self.doc.start_table("altnames","IDS-IndTable") @@ -319,7 +325,8 @@ class IndivCompleteReport(Report): self.doc.end_cell() self.doc.end_row() - for name in self.person.get_alternate_names(): + for name in alt_names: + self.names_notes_list += name.get_note_list() name_type = self._(self._get_type(name.get_type())) self.doc.start_row() self.write_cell(name_type)