X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f723eb199836887a535942c387091557a76f88aa..1c7afef1f2195ab5548dd92bd013217a33691562:/sql/functions.sql

diff --git a/sql/functions.sql b/sql/functions.sql
index 09ff155c..5bbaad5b 100644
--- a/sql/functions.sql
+++ b/sql/functions.sql
@@ -2251,7 +2251,7 @@ BEGIN
       country_code = NEW.country_code,
       parent_place_id = null,
       extratags = NEW.extratags,
-      admin_level = NEW.admin_level,
+      admin_level = CASE WHEN NEW.admin_level > 15 THEN 15 ELSE NEW.admin_level END,
       indexed_status = 2,    
       geometry = NEW.geometry
       where place_id = existingplacex.place_id;
