Removed double quotes for input fields in extended search
This commit is contained in:
parent
7f72892b0b
commit
7674e2c64c
1 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@
|
||||||
if ('operator' in json_query && json_query.operator.startsWith("not_")){
|
if ('operator' in json_query && json_query.operator.startsWith("not_")){
|
||||||
string_query += "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;
|
return string_query;
|
||||||
}
|
}
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
values: {
|
values: {
|
||||||
<#list searchFilters as filter>
|
<#list searchFilters as filter>
|
||||||
<#if filter.field == field.field>
|
<#if filter.field == field.field>
|
||||||
'${filter.id}':'${filter.name}',
|
'"${filter.id}"':'${filter.name}',
|
||||||
</#if>
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue