From 7ec13cac244bbab58e27d74526e4ef550ed5a0e7 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sun, 24 Aug 2014 18:56:49 +0100 Subject: [PATCH] 8011: Fix backlinks code in place report Backlinks for places can now also be places as well as events. --- gramps/plugins/textreport/placereport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/textreport/placereport.py b/gramps/plugins/textreport/placereport.py index bd46f24f0..4721b5bac 100644 --- a/gramps/plugins/textreport/placereport.py +++ b/gramps/plugins/textreport/placereport.py @@ -178,7 +178,7 @@ class PlaceReport(Report): This procedure writes out each of the events related to the place """ event_handles = [event_handle for (object_type, event_handle) in - self.database.find_backlink_handles(handle,['Event'])] + self.database.find_backlink_handles(handle, ['Event'])] event_handles.sort(key=self.sort.by_date_key) if event_handles: @@ -254,7 +254,7 @@ class PlaceReport(Report): This procedure writes out each of the people related to the place """ event_handles = [event_handle for (object_type, event_handle) in - self.database.find_backlink_handles(handle)] + self.database.find_backlink_handles(handle, ['Event'])] if event_handles: self.doc.start_paragraph("PLC-Section")