From 8163723e225e8e4b42df298578f8d4a68668594a Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 2 May 2022 11:01:54 +0200 Subject: [PATCH] respect exclude_place_ids for housenumber search --- lib-php/SearchDescription.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib-php/SearchDescription.php b/lib-php/SearchDescription.php index fbf6b650..65df58ef 100644 --- a/lib-php/SearchDescription.php +++ b/lib-php/SearchDescription.php @@ -642,6 +642,7 @@ class SearchDescription // Housenumbers on streets and places. $sPlacexSql = 'SELECT array_agg(place_id) FROM placex'; $sPlacexSql .= ' WHERE parent_place_id = sin.place_id AND sin.address_rank < 30'; + $sPlacexSql .= $this->oContext->excludeSQL(' AND place_id'); $sPlacexSql .= ' and housenumber ~* E'.$sHouseNumberRegex; // Interpolations on streets and places. -- 2.39.5