From b3fc97bd9e8c02907e567888b5770a84205e4ab1 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Fri, 8 Sep 2023 14:34:49 +0100 Subject: [PATCH] Fix report dialog error when no active person selected Running a report from the reports dialog with no active person selected caused an error. Fixes #13020. --- gramps/gui/plug/_dialogs.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gramps/gui/plug/_dialogs.py b/gramps/gui/plug/_dialogs.py index c6e41664965..00c76ba15a2 100644 --- a/gramps/gui/plug/_dialogs.py +++ b/gramps/gui/plug/_dialogs.py @@ -260,11 +260,10 @@ def run_plugin(self, pdata): return if pdata.ptype == REPORT: - active_handle = self.uistate.get_active("Person") report( self.state, self.uistate, - self.state.db.get_person_from_handle(active_handle), + self.uistate.get_active("Person"), getattr(mod, pdata.reportclass), getattr(mod, pdata.optionclass), pdata.name,