diff --git a/ChangeLog b/ChangeLog index 43a6e99e2..75862ef19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-12-10 Martin Hawlisch + * src/DisplayModels/_PeopleModel.py: Fix birth date fallback + 2006-12-09 Don Allingham * src/DataViews/_MediaView.py: external view support for media objects * src/Editors/_EditPlace.py: external view support for media objects diff --git a/src/DisplayModels/_PeopleModel.py b/src/DisplayModels/_PeopleModel.py index 8eb16e177..f5e8bf8a1 100644 --- a/src/DisplayModels/_PeopleModel.py +++ b/src/DisplayModels/_PeopleModel.py @@ -467,9 +467,10 @@ class PeopleModel(gtk.GenericTreeModel): er = EventRef() er.unserialize(event_ref) event = self.db.get_event_from_handle(er.ref) - etype = event.get_type()[0] + etype = event.get_type() date_str = DateHandler.get_date(event) if (etype in [EventType.BAPTISM, EventType.CHRISTEN] + and er.get_role() == EventRoleType.PRIMARY and date_str != ""): return "" + cgi.escape(date_str) + ""