# HG changeset patch # User Raimund Renkert # 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)response.getData()).isEmpty()) { LProbe found = ((List)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();