From e7032c45b6a3b3172de1975ddc264095313e7256 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 19 Jun 2012 14:15:39 +0000 Subject: [PATCH] 5794: Birthday list report has invalid code svn: r19879 --- src/plugins/textreport/BirthdayReport.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/textreport/BirthdayReport.py b/src/plugins/textreport/BirthdayReport.py index d9bed5957..5a0a01ace 100644 --- a/src/plugins/textreport/BirthdayReport.py +++ b/src/plugins/textreport/BirthdayReport.py @@ -255,7 +255,10 @@ class CalendarReport(Report): if father_handle: father = self.database.get_person_from_handle(father_handle) if father is not None: - father_lastname = father.get_primary_name().surname + primary_name = father.get_primary_name() + if primary_name: + father_lastname = primary_name.get_primary_surname() + short_name = self.get_name(person, father_lastname) alive = probably_alive(person, self.database, prob_alive_date)