Skip to content
Snippets Groups Projects
Commit 68172683 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Bugfix: Create trap POI from app

parent fe251451
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,8 @@ public class PointOfInterest implements Serializable, Comparable {
break;
case 4: instance = new PointOfInterestTypeRegion();
break;
case 5: instance = new PointOfInterestTypeTrap();
break;
default: instance = null;
break;
}
......
......@@ -173,7 +173,7 @@ public class POIService {
}
} else {
PointOfInterest mergePoi = ((Integer) mapFromApp.get("pointOfInterestId")) > 0 ? SessionControllerGetter.getPointOfInterestBean().getPointOfInterest((Integer) mapFromApp.get("pointOfInterestId")) : PointOfInterest.getInstance((Integer) mapFromApp.get("pointOfInterestTypeId"));
// Trying to sync a non-existing observation
// Trying to sync a non-existing POI
if (mergePoi == null) {
return Response.status(Status.NOT_FOUND).build();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment