]> git.openstreetmap.org Git - nominatim.git/commitdiff
php frontend: fix on-the-fly lookup of postcode areas
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 15 Nov 2023 16:45:12 +0000 (17:45 +0100)
committerSarah Hoffmann <lonvia@denofr.de>
Fri, 17 Nov 2023 09:06:18 +0000 (10:06 +0100)
lib-sql/functions/address_lookup.sql

index 2bbfcd5c03c6296ff06191a00571c7b11f5da25a..3a37953abc072ae7d1ec2fbc6159a1660265f2ea 100644 (file)
@@ -261,7 +261,7 @@ BEGIN
       -- If the place had a postcode assigned, take this one only
       -- into consideration when it is an area and the place does not have
       -- a postcode itself.
-      IF location.fromarea AND location.isaddress
+      IF location.fromarea AND location_isaddress
          AND (place.address is null or not place.address ? 'postcode')
       THEN
         place.postcode := null; -- remove the less exact postcode