Mercurial > lada > lada-server
changeset 1337:462226615381
Show warning also at the other side of the relation.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 06 Apr 2017 17:15:55 +0200 |
parents | 18c789672b14 |
children | ffbf9cff4aa6 |
files | src/main/java/de/intevation/lada/validation/rules/messung/MessgroesseToMessmethode.java |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; } }