Removed double quotes for input fields in extended search

This commit is contained in:
Georgy Litvinov 2020-12-08 00:53:43 +01:00
parent 7f72892b0b
commit 7674e2c64c

View file

@ -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}',
'&quot;${filter.id}&quot;':'${filter.name}',
</#if>
</#list>