[Lada-commits] [PATCH] Show warning also at the other side of the relation

Wald Commits scm-commit at wald.intevation.org
Thu Apr 6 17:24:41 CEST 2017


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1491491755 -7200
# Node ID 462226615381d2ecbc792949625f2f6b93287d1f
# Parent  18c789672b14f57bcc09055d22a6a53ee64c0736
Show warning also at the other side of the relation.

diff -r 18c789672b14 -r 462226615381 src/main/java/de/intevation/lada/validation/rules/messung/MessgroesseToMessmethode.java
--- a/src/main/java/de/intevation/lada/validation/rules/messung/MessgroesseToMessmethode.java	Thu Apr 06 10:10:39 2017 +0200
+++ b/src/main/java/de/intevation/lada/validation/rules/messung/MessgroesseToMessmethode.java	Thu Apr 06 17:15:55 2017 +0200
@@ -87,6 +87,10 @@
                 violation.addWarning("messgroesse#" + mg.getMessgroesse(), 632);
             }
         }
-        return violation.hasWarnings() ? violation : null;
+        if (violation.hasWarnings()) {
+            violation.addWarning("mmtId", 632);
+            return violation;
+        }
+        return null;
     }
 }


More information about the Lada-commits mailing list