[Lada-commits] [PATCH 3 of 8] Fixed hauptproben_nr validation

Wald Commits scm-commit at wald.intevation.org
Wed Mar 25 16:26:25 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1427296465 -3600
# Node ID 7a97e4b1cc18e422ff33d4fba7b8eb3864d68e3e
# Parent  843eff9bff028411017c123989f7fa1607eda523
Fixed hauptproben_nr validation.

diff -r 843eff9bff02 -r 7a97e4b1cc18 src/main/java/de/intevation/lada/validation/rules/probe/UniqueHauptprobenNr.java
--- 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();


More information about the Lada-commits mailing list