[Lada-commits] [PATCH 1 of 2] Fix multiselect delimiter

Wald Commits scm-commit at wald.intevation.org
Wed Jun 8 12:17:35 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1465380937 -7200
# Node ID 6ab55e59cfae3028d5f9881e7000b92fa7be84d7
# Parent  4b5f5e253cab1e5a248f7adfec28aeea77383c3d
Fix multiselect delimiter.

diff -r 4b5f5e253cab -r 6ab55e59cfae src/main/java/de/intevation/lada/query/QueryTools.java
--- 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);
         }


More information about the Lada-commits mailing list