From 0e7638d7cd3e763d52076a67045a2afd17b700f7 Mon Sep 17 00:00:00 2001 From: temi Date: Fri, 27 Sep 2024 17:07:29 +1000 Subject: [PATCH] AtlasOfLivingAustralia/fieldcapture#3292 - do not find location metadata if no geometry object is present --- .../controllers/au/org/ala/ecodata/AdminController.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grails-app/controllers/au/org/ala/ecodata/AdminController.groovy b/grails-app/controllers/au/org/ala/ecodata/AdminController.groovy index 5432ccbdd..f74b9c07c 100644 --- a/grails-app/controllers/au/org/ala/ecodata/AdminController.groovy +++ b/grails-app/controllers/au/org/ala/ecodata/AdminController.groovy @@ -333,8 +333,8 @@ class AdminController { log.info("${total+1} or ${(total+1)*100/totalSites} % sites updated in db..") } - if (!site.extent) { - log.debug("Ignoring site ${site.siteId} due to no extent") + if (!site.extent?.geometry) { + log.debug("Ignoring site ${site.siteId} due to no extent/geometry") return } // management unit site does not have any projects