From eb6506b2dadfcf4b3c17a1c4cb6fa643dbd4ac9b Mon Sep 17 00:00:00 2001 From: prculley Date: Wed, 20 Sep 2023 11:03:03 -0500 Subject: [PATCH] Fix GEDCOM import for SUBN record containing note Fixes #13024, #12152 --- gramps/plugins/lib/libgedcom.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps/plugins/lib/libgedcom.py b/gramps/plugins/lib/libgedcom.py index 77a06dd0971..ba67d07435a 100644 --- a/gramps/plugins/lib/libgedcom.py +++ b/gramps/plugins/lib/libgedcom.py @@ -8190,6 +8190,10 @@ def __parse_submission(self, line, state): +1 RIN {0:1} +1 NOTE {0:m} """ + if not self.use_def_src: + # no place to put data, so call it not recognized + self.__not_recognized(line, state) + return while True: line = self.__get_next_line() msg = "" @@ -8209,11 +8213,12 @@ def __parse_submission(self, line, state): msg = _("Submission: Ordinance process flag") elif line.token == TOKEN_NOTE or line.token == TOKEN_RNOTE: self.__parse_note(line, self.def_src, state) + self.dbase.commit_source(self.def_src, self.trans) else: self.__not_recognized(line, state) continue - if self.use_def_src and msg != "": + if msg != "": sattr = SrcAttribute() sattr.set_type(msg) sattr.set_value(line.data)