Fix of issue 2226.
svn: r10812
This commit is contained in:
parent
9585455474
commit
7c816b8585
@ -2113,7 +2113,7 @@ def find_marriage(database, family):
|
||||
for event_ref in family.get_event_ref_list():
|
||||
event = database.get_event_from_handle(event_ref.ref)
|
||||
if event and event.get_type() == gen.lib.EventType.MARRIAGE \
|
||||
and event_ref.get_role() == gen.lib.EventRoleType.PRIMARY:
|
||||
and event_ref.get_role() == gen.lib.EventRoleType.FAMILY:
|
||||
return event
|
||||
return None
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user