Skip to content

Commit

Permalink
Fix GEDCOM import for SUBN record containing note
Browse files Browse the repository at this point in the history
Fixes #13024, #12152
  • Loading branch information
prculley authored and Nick-Hall committed Feb 6, 2024
1 parent ec98f8d commit 89638f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gramps/plugins/lib/libgedcom.py
Original file line number Diff line number Diff line change
Expand Up @@ -8190,6 +8190,10 @@ def __parse_submission(self, line, state):
+1 RIN <AUTOMATED_RECORD_ID> {0:1}
+1 NOTE <NOTE_STRUCTURE> {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 = ""
Expand All @@ -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)
Expand Down

0 comments on commit 89638f5

Please sign in to comment.