# HG changeset patch # User Raimund Renkert # Date 1373028959 -7200 # Node ID b619f6552f55b18877b6ced066151e1843351fb4 # Parent d8a3d188046f16fe704c2467ef0ce20619dbd33d Fixed update of LProbe objects. diff -r d8a3d188046f -r b619f6552f55 src/main/java/de/intevation/lada/rest/LProbeService.java --- a/src/main/java/de/intevation/lada/rest/LProbeService.java Fri Jul 05 13:24:13 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/LProbeService.java Fri Jul 05 14:55:59 2013 +0200 @@ -184,7 +184,9 @@ public Response update(LProbeInfo probe, @Context HttpHeaders header) { try { if(authentication.hasAccess(header, probe.getProbeId())) { - return repository.update(probe); + LProbe p = probe.toLProbe(); + p.setProbeId(probe.getProbeId()); + return repository.update(p); } return new Response(false, 698, new ArrayList()); }