From ecd065155365cbb8ffbdc53810462c06329f7a81 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Fri, 21 Aug 2020 10:49:41 +0200 Subject: [PATCH] Modified logical search query --- webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl b/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl index 92d5cc69..619835fc 100644 --- a/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl @@ -85,7 +85,7 @@ if ('operator' in json_query && json_query.operator.startsWith("not_")){ string_query += "NOT "; } - string_query += json_query.field + ":\'" + escape(json_query.value.toString().replace(/['"]+/g, '')) + "\'"; + string_query += json_query.field + ":\"" + json_query.value.toString().replace(/['"]+/g,'').replace(/#/g,'%23') + "\""; } return string_query; }