[Lada-commits] [PATCH] Fixed rule to allow update of 'entnahmeOrt'

Wald Commits scm-commit at wald.intevation.org
Wed Nov 9 16:32:36 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1478705549 -3600
# Node ID 7d3adb0834f5f76499587e748b46160b807c09d3
# Parent  8295d84fe003b8fc0ba06b7c7d20a42bb24dc8d6
Fixed rule to allow update of 'entnahmeOrt'.

diff -r 8295d84fe003 -r 7d3adb0834f5 src/main/java/de/intevation/lada/validation/rules/ort/HasEntnahmeOrt.java
--- a/src/main/java/de/intevation/lada/validation/rules/ort/HasEntnahmeOrt.java	Wed Nov 09 15:42:08 2016 +0100
+++ b/src/main/java/de/intevation/lada/validation/rules/ort/HasEntnahmeOrt.java	Wed Nov 09 16:32:29 2016 +0100
@@ -43,7 +43,7 @@
             "land");
         for (Ortszuordnung o : orte) {
             if ("E".equals(o.getOrtszuordnungTyp()) &&
-                o.getId().equals(ort.getId())
+                !o.getId().equals(ort.getId())
             ) {
                 Violation violation = new Violation();
                 violation.addError("ortszuordnungsTyp", 611);


More information about the Lada-commits mailing list