changeset 974:6ab55e59cfae

Fix multiselect delimiter.
author Tom Gottfried <tom@intevation.de>
date Wed, 08 Jun 2016 12:15:37 +0200 (2016-06-08)
parents 4b5f5e253cab
children 5ec11036b4e2
files src/main/java/de/intevation/lada/query/QueryTools.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/query/QueryTools.java	Tue Jun 07 16:20:18 2016 +0200
+++ b/src/main/java/de/intevation/lada/query/QueryTools.java	Wed Jun 08 12:15:37 2016 +0200
@@ -232,7 +232,9 @@
             List<String> clean = new ArrayList<String>();
             for(String p : param) {
                 p = p.trim();
-                clean.add(p.replace(" ", "|"));
+                // replace multiSelect-delimiter set by ExtJS with
+                // alternation metacharacter for PostgreSQL SIMILAR TO
+                clean.add(p.replace(",", "|"));
             }
             query.setParameter(filter.getDataIndex(), clean);
         }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)