Skip to content

Commit

Permalink
correction de la recherche sur adresse avec des codes voies n'ayant p…
Browse files Browse the repository at this point in the history
…as l'identifiant majic (ccovoi) (3liz#345)

ces codes voies proviennent de l'import depuis TOPO
les valeurs sont quand même uniques en concaténant le code insee+ccoriv.
  • Loading branch information
landryb committed Jul 24, 2024
1 parent cca0adb commit c28dd67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cadastre/dialogs/search_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ def onSearchItemChoose(self, key, label, value):
# Set filter expression for parcell child data
ckey = self.searchComboBoxes[key]['search']['parcelle_child']
if key == 'adresse':
filterExpression = "voie = '%s'" % value['voie']
filterExpression = "SUBSTR(voie,0,7)||SUBSTR(voie,12,4) = '%s%s'" % (value['voie'][0:6], value['voie'][11:])

if key == 'proprietaire':
filterExpression = "comptecommunal IN (%s)" % ', '.join(value['cc'])
Expand Down

0 comments on commit c28dd67

Please sign in to comment.