changeset 1312:2b4cd062f6a1 release-2.5

load complete messprogrammkategorieStore
author Evi Huber <ehuber@bfs.de>
date Wed, 15 Mar 2017 10:01:24 +0100
parents 5549c214e816
children 2c4a20e0bc92
files src/main/java/de/intevation/lada/rest/stamm/MessprogrammKategorieService.java
diffstat 1 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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) {
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)