Fix CSV import to set marriage event role to family (#725)

Fixes #9952
This commit is contained in:
Paul Culley 2018-11-28 16:15:01 -06:00 committed by Sam Manzi
parent 6f7699480d
commit e356573605
2 changed files with 189 additions and 195 deletions

File diff suppressed because it is too large Load Diff

View File

@ -451,6 +451,7 @@ class CSVParser:
if new:
mar_ref = EventRef()
mar_ref.set_reference_handle(marriage.get_handle())
mar_ref.set_role(EventRoleType(EventRoleType.FAMILY))
family.add_event_ref(mar_ref)
self.db.commit_family(family, self.trans)
# only add note to event: