This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new 91ff207c17 Fixed: Cannot add a new geo point to a facility (OFBIZ-12793) 91ff207c17 is described below commit 91ff207c17e24efc53645bb9339aaae97ff165e6 Author: Jacques Le Roux <jacques.le.r...@les7arts.com> AuthorDate: Tue Apr 4 10:05:36 2023 +0200 Fixed: Cannot add a new geo point to a facility (OFBIZ-12793) In demo-trunk, visit https://demo-trunk.ofbiz.apache.org/facility, select the 'My Retail Store' facility and then navigate to that facility's Geo Location tab. Adding a new geo location to the facility fails with the error: No such property: ServiceUtil for class: FacilityGeoServices Error is due to a missing import of the ServiceUtil class in FacilityGeoServices.groovy. Thanks: Daniel for report and 1st analysis. There was also a use of result instead of serviceResult --- .../groovyScripts/facility/facility/FacilityGeoServices.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applications/product/groovyScripts/facility/facility/FacilityGeoServices.groovy b/applications/product/groovyScripts/facility/facility/FacilityGeoServices.groovy index 30646a8160..2e3c484b26 100644 --- a/applications/product/groovyScripts/facility/facility/FacilityGeoServices.groovy +++ b/applications/product/groovyScripts/facility/facility/FacilityGeoServices.groovy @@ -18,6 +18,7 @@ */ import org.apache.ofbiz.entity.GenericValue +import org.apache.ofbiz.service.ServiceUtil /** * Create or update GeoPoint assigned to facility @@ -29,7 +30,7 @@ Map createUpdateFacilityGeoPoint() { if (!ServiceUtil.isSuccess(serviceResult)) { return serviceResult } - String geoPointId = result.geoPointId + String geoPointId = serviceResult.geoPointId GenericValue facility = from("Facility").where(parameters).queryOne() facility.geoPointId = geoPointId facility.store() @@ -38,4 +39,4 @@ Map createUpdateFacilityGeoPoint() { Map serviceResult = run service: "updateGeoPoint", with: parameters return serviceResult } -} \ No newline at end of file +}