[Lada-commits] [PATCH 1 of 5] Fixed filter item check
Wald Commits
scm-commit at wald.intevation.org
Fri Feb 26 09:41:46 CET 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1456392998 -3600
# Node ID 16c0c6946ae97cfad408534f2f5377077ab10352
# Parent 77e22ad5cc84d985d64722a5bca9960e708bce39
Fixed filter item check.
diff -r 77e22ad5cc84 -r 16c0c6946ae9 app/controller/Filter.js
--- 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') {
More information about the Lada-commits
mailing list