From 99c5d656202d1b3794752b8337b32c11f81fada9 Mon Sep 17 00:00:00 2001 From: Salvatore Larosa Date: Sun, 20 Feb 2022 22:32:41 +0100 Subject: [PATCH] Fix #17 (duplicate of #19) release update --- metadata.txt | 4 ++-- select_by_relationship_handler.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/metadata.txt b/metadata.txt index 6872763..67a87d9 100644 --- a/metadata.txt +++ b/metadata.txt @@ -1,8 +1,8 @@ [general] name=Select by relationship -qgisMinimumVersion=3.0 +qgisMinimumVersion=3.16 description=The plugin allows to select records through tables based on relationships one-to-one or one-to-many specified inside a QGIS project. -version=0.3.1 +version=0.3.3 author=Luca Mandolesi, Salvatore Larosa email=pyarchinit@gmail.com diff --git a/select_by_relationship_handler.py b/select_by_relationship_handler.py index 66f06d4..f2b71f3 100644 --- a/select_by_relationship_handler.py +++ b/select_by_relationship_handler.py @@ -177,7 +177,7 @@ def disconnectRelations(self): def selectParentFromChilds(self, fids): rls = self.manager.referencingRelations(self.sender()) for rl in rls: - if rl.name() in self.relations.keys(): + if rl.id() in self.relations.keys(): referencingLayer = rl.referencingLayer() referencedLayer = rl.referencedLayer() @@ -201,7 +201,7 @@ def selectParentFromChilds(self, fids): def selectChildsFromParent(self, fids): rls = self.manager.referencedRelations(self.sender()) for rl in rls: - if rl.name() in self.relations.keys(): + if rl.id() in self.relations.keys(): referencingLayer = rl.referencingLayer() referencedLayer = rl.referencedLayer()