diff --git a/cadastre/dialogs/search_dialog.py b/cadastre/dialogs/search_dialog.py index e2f90d49..45d4fed5 100644 --- a/cadastre/dialogs/search_dialog.py +++ b/cadastre/dialogs/search_dialog.py @@ -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'])