Mercurial > lada > lada-client
changeset 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 | 132c7b086fd5 |
children | 0fa48c66cf7d |
files | app/controller/Sql.js |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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({