Mercurial > lada > lada-server
changeset 233:b619f6552f55
Fixed update of LProbe objects.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Fri, 05 Jul 2013 14:55:59 +0200 |
parents | d8a3d188046f |
children | 0d545e6d1885 |
files | src/main/java/de/intevation/lada/rest/LProbeService.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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<LProbeInfo>()); }