Skip to content

Commit

Permalink
Fix pyarchinit#17 (duplicate of pyarchinit#19) release update
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Feb 20, 2022
1 parent 8bbdf1c commit 99c5d65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions metadata.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions select_by_relationship_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand All @@ -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()

Expand Down

0 comments on commit 99c5d65

Please # to comment.