From cfaee2894a11bf45ab62274679166c441d524cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Fri, 25 May 2012 14:02:29 +0000 Subject: [PATCH] 5705: Wrong detection of error (burial before death) when checking data svn: r19644 --- src/plugins/tool/Verify.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/tool/Verify.py b/src/plugins/tool/Verify.py index e4efe4234..3755b4440 100644 --- a/src/plugins/tool/Verify.py +++ b/src/plugins/tool/Verify.py @@ -136,6 +136,9 @@ def get_date_from_event_type(db,person,event_type,estimate=False): for event_ref in person.get_event_ref_list(): event = find_event(db,event_ref.ref) if event: + if event_ref.get_role() != gen.lib.EventRoleType.PRIMARY and \ + event.get_type() == gen.lib.EventType.BURIAL: + continue if event.get_type() == event_type: date_obj = event.get_date_object() if not estimate and \