[Lada-commits] [PATCH] Fixed query to find ort by staat

Wald Commits scm-commit at wald.intevation.org
Wed Feb 8 12:01:11 CET 2017


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1486551667 -3600
# Node ID 3383ca19f7a5cf6fcc44aea107dc60033e96227f
# Parent  7da497d142a26b27adc20d054bce8aa69f911dd7
Fixed query to find ort by staat.

diff -r 7da497d142a2 -r 3383ca19f7a5 src/main/java/de/intevation/lada/factory/OrtFactory.java
--- a/src/main/java/de/intevation/lada/factory/OrtFactory.java	Wed Feb 08 09:18:32 2017 +0100
+++ b/src/main/java/de/intevation/lada/factory/OrtFactory.java	Wed Feb 08 12:01:07 2017 +0100
@@ -147,7 +147,7 @@
             ort.getStaatId() != 0
         ) {
             logger.debug("has staat");
-            builder.and("staatId", ort.getGemId());
+            builder.and("staatId", ort.getStaatId());
             builder.and("ozId", ort.getOzId());
             builder.and("netzbetreiberId", ort.getNetzbetreiberId());
             List<Ort> orte = repository.filterPlain(builder.getQuery(), "stamm");


More information about the Lada-commits mailing list