GEDCOM import: if a default source is created, attached date data for submitters was incorrectly stored as a Date object when it should be text.
svn: r18945
This commit is contained in:
parent
a5c42e2975
commit
b422c82edb
@ -6317,8 +6317,12 @@ class GedcomParser(UpdateCallback):
|
|||||||
@type state: CurrentState
|
@type state: CurrentState
|
||||||
"""
|
"""
|
||||||
if self.use_def_src:
|
if self.use_def_src:
|
||||||
|
# Because there is a DATE tag, line.data is automatically converted
|
||||||
|
# to a Date object before getting to this point, so it has to be
|
||||||
|
# converted back to a string
|
||||||
|
text_date = str(line.data)
|
||||||
self.def_src.set_data_item(_("Publication date of source data"),
|
self.def_src.set_data_item(_("Publication date of source data"),
|
||||||
line.data)
|
text_date)
|
||||||
|
|
||||||
def __header_file(self, line, state):
|
def __header_file(self, line, state):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user