From 7674e2c64c640f6d471f83e739117f7f13263b67 Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Tue, 8 Dec 2020 00:53:43 +0100 Subject: [PATCH] Removed double quotes for input fields in extended search --- webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl b/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl index 9e730b03..bfcdd005 100644 --- a/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/queryBuilder.ftl @@ -141,7 +141,7 @@ if ('operator' in json_query && json_query.operator.startsWith("not_")){ string_query += "NOT "; } - string_query += json_query.field + ":\"" + json_query.value.toString().replace(/['"]+/g,'').replace(/#/g,'%23') + "\""; + string_query += json_query.field + ":" + json_query.value.toString().replace(/[']+/g,'').replace(/#/g,'%23') ; } return string_query; } @@ -164,7 +164,7 @@ values: { <#list searchFilters as filter> <#if filter.field == field.field> - '${filter.id}':'${filter.name}', + '"${filter.id}"':'${filter.name}',