changeset 365:ae1b4c828649

Make Filter generatiion work for new query config
author Torsten Irländer <torsten.irlaender@intevation.de>
date Fri, 16 Aug 2013 11:03:37 +0200
parents d0f5be50aed5
children 71ca7e597952
files app/controller/Sql.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Sql.js	Thu Aug 15 16:58:48 2013 +0200
+++ b/app/controller/Sql.js	Fri Aug 16 11:03:37 2013 +0200
@@ -63,7 +63,7 @@
                 var filtername = items[i].id;
                 items[i].hide();
                 for (var j=0; j < filterFields.length; j++) {
-                    if ('filter-'+filterFields[j] === filtername) {
+                    if ('filter-'+filterFields[j].dataIndex === filtername) {
                         items[i].show();
                     };
                 };

http://lada.wald.intevation.org