Commit 9dec70a7 authored by Matija Obreza's avatar Matija Obreza

Don't add % to beginning of term in like operation

parent b96a530a
......@@ -403,7 +403,7 @@ public class DirectMysqlQuery {
private void addParamLike(List<Object> params, JsonNode value) {
if (JsonNodeType.STRING == value.getNodeType()) {
params.add("%" + value.asText() + "%");
params.add(value.asText() + "%");
} else if (JsonNodeType.BOOLEAN == value.getNodeType()) {
params.add(value.asBoolean());
} else if (JsonNodeType.NUMBER == value.getNodeType()) {
......
......@@ -357,7 +357,7 @@ filter.autocomplete-placeholder=Type more than 3 characters...
filter.collMissId=Collecting mission ID
filter.storage=Type of Germplasm storage
filter.string.equals=Equals
filter.string.like=Like
filter.string.like=Starts with
search.page.title=Full-text Search
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment