From 83236eb3ac0592714a54b32fd537b44c87a6e4db Mon Sep 17 00:00:00 2001 From: Pahansith Date: Thu, 1 Oct 2020 19:48:00 +0530 Subject: [PATCH] Fix geofence update issue --- .../mgt/jaxrs/service/impl/GeoLocationBasedServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GeoLocationBasedServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GeoLocationBasedServiceImpl.java index ad8ce0829b..c854e80958 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GeoLocationBasedServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/GeoLocationBasedServiceImpl.java @@ -711,7 +711,8 @@ public class GeoLocationBasedServiceImpl implements GeoLocationBasedService { geofenceData.setLatitude(geofenceWrapper.getLatitude()); geofenceData.setLongitude(geofenceWrapper.getLongitude()); geofenceData.setRadius(geofenceWrapper.getRadius()); - + geofenceData.setFenceShape(geofenceWrapper.getFenceShape()); + geofenceData.setGeoJson(geofenceWrapper.getGeoJson()); GeoLocationProviderService geoService = DeviceMgtAPIUtils.getGeoService(); if (!geoService.updateGeofence(geofenceData, fenceId)) { String msg = "No valid Geofence found for ID " + fenceId;