changeset 1042:16c0c6946ae9

Fixed filter item check.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 25 Feb 2016 10:36:38 +0100
parents 77e22ad5cc84
children 91f65b9cc2fb
files app/controller/Filter.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Filter.js	Fri Feb 19 13:59:24 2016 +0100
+++ b/app/controller/Filter.js	Thu Feb 25 10:36:38 2016 +0100
@@ -473,7 +473,7 @@
         var qId = search.getValue();
         var query = search.store.getById(qId);
         var ndx = 0;
-        for (var i = filters.items.length - 1; i >= 0; i--) {
+        for (var i = filters.items.items.length - 1; i >= 0; i--) {
             var filter = filters.items.items[i];
             var filterId = filter.filterId;
             var value = filter.getValue();
@@ -495,7 +495,7 @@
                             break;
                         }
                     }
-                    if (ndx < filter.items.length - 1) {
+                    if (ndx < filters.items.items.length - 1) {
                         return;
                     }
                     if (query.get('type') === 'probe') {

http://lada.wald.intevation.org