changeset 591:7a97e4b1cc18

Fixed hauptproben_nr validation.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 25 Mar 2015 16:14:25 +0100
parents 843eff9bff02
children 519fcf6e738c
files src/main/java/de/intevation/lada/validation/rules/probe/UniqueHauptprobenNr.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/rules/probe/UniqueHauptprobenNr.java	Wed Mar 25 16:12:49 2015 +0100
+++ b/src/main/java/de/intevation/lada/validation/rules/probe/UniqueHauptprobenNr.java	Wed Mar 25 16:14:25 2015 +0100
@@ -33,7 +33,7 @@
         if (!((List<LProbe>)response.getData()).isEmpty()) {
             LProbe found = ((List<LProbe>)response.getData()).get(0);
             // The probe found in the db equals the new probe. (Update)
-            if (probe.getId() != null && probe.getId() == found.getId()) {
+            if (probe.getId() != null && probe.getId().equals(found.getId())) {
                 return null;
             }
             Violation violation = new Violation();
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)