Mercurial > lada > lada-client
diff app/controller/Sql.js @ 378:d001e88affde
Fixed building searchparams support empty selection in multiselect.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Mon, 26 Aug 2013 12:13:26 +0200 |
parents | 1327dd6ec246 |
children | 00bf2d4f3bd1 |
line wrap: on
line diff
--- a/app/controller/Sql.js Fri Aug 23 12:58:52 2013 +0200 +++ b/app/controller/Sql.js Mon Aug 26 12:13:26 2013 +0200 @@ -141,7 +141,10 @@ for (var i = filters.items.length - 1; i >= 0; i--){ var filter = filters.items.items[i]; var value = filter.getValue(); - searchParams[filter.getName()] = filter.getValue(); + if (value instanceof Array) { + value = value.join(","); + } + searchParams[filter.getName()] = value; } console.log('Loading store with the following search params: ' + searchParams); result.getStore().load({