[Lada-commits] [PATCH] load complete messprogrammkategorieStore
Wald Commits
scm-commit at wald.intevation.org
Wed Mar 15 10:01:32 CET 2017
# HG changeset patch
# User Evi Huber <ehuber at bfs.de>
# Date 1489568484 -3600
# Branch release-2.5
# Node ID 2b4cd062f6a1b4ef3dbbe61074dedf0361183123
# Parent 5549c214e816ff247f0b7f55c21eb3e81b5af02d
load complete messprogrammkategorieStore
diff -r 5549c214e816 -r 2b4cd062f6a1 src/main/java/de/intevation/lada/rest/stamm/MessprogrammKategorieService.java
--- a/src/main/java/de/intevation/lada/rest/stamm/MessprogrammKategorieService.java Thu Mar 09 15:16:31 2017 +0100
+++ b/src/main/java/de/intevation/lada/rest/stamm/MessprogrammKategorieService.java Wed Mar 15 10:01:24 2017 +0100
@@ -138,14 +138,16 @@
kategorie = repository.getAllPlain(MessprogrammKategorie.class, "stamm");
}
int size = kategorie.size();
- if (params.containsKey("start") && params.containsKey("limit")) {
- int start = Integer.valueOf(params.getFirst("start"));
- int limit = Integer.valueOf(params.getFirst("limit"));
- int end = limit + start;
- if (start + limit > kategorie.size()) {
- end = kategorie.size();
+ if (params.containsKey("qid")) {
+ if (params.containsKey("start") && params.containsKey("limit")) {
+ int start = Integer.valueOf(params.getFirst("start"));
+ int limit = Integer.valueOf(params.getFirst("limit"));
+ int end = limit + start;
+ if (start + limit > kategorie.size()) {
+ end = kategorie.size();
+ }
+ kategorie = kategorie.subList(start, end);
}
- kategorie = kategorie.subList(start, end);
}
for (MessprogrammKategorie mk : kategorie) {
More information about the Lada-commits
mailing list