diff src/main/java/de/intevation/lada/rest/ProbeService.java @ 949:2c927b3edb97

Return correct response if update failed.
author Tom Gottfried <tom@intevation.de>
date Tue, 24 May 2016 11:46:17 +0200
parents 48ca912c571e
children 1c41c7b8f7c2 0a44ab47d3d5
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/ProbeService.java	Mon May 23 15:49:30 2016 +0200
+++ b/src/main/java/de/intevation/lada/rest/ProbeService.java	Tue May 24 11:46:17 2016 +0200
@@ -446,6 +446,9 @@
             factory.findUmweltId(probe);
         }
         Response response = repository.update(probe, "land");
+        if (!response.getSuccess()) {
+            return response;
+        }
         Response updated = repository.getById(
             LProbe.class,
             ((LProbe)response.getData()).getId(), "land");
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)