related to issue 40522 code review changes default tip
authorSandra Huguet <sandra.huguet@openbravo.com>
Thu, 25 Apr 2019 13:12:34 +0200
changeset 35703 cfc6ddc67eb0
parent 35702 a5d02171e10c
related to issue 40522 code review changes
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java	Thu Apr 25 12:39:23 2019 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/utility/FIN_BankStatementImport.java	Thu Apr 25 13:12:34 2019 +0200
@@ -413,9 +413,9 @@
       int tokenIndex = 0;
       for (String token : list) {
         String tokenParamName = String.format("token_%d", tokenIndex);
-        tokenPrams.put(tokenParamName, token);
-        whereClause.append(" lower(b." + BusinessPartner.PROPERTY_NAME + ") like lower('%:"
-            + tokenParamName + "%') or ");
+        tokenPrams.put(tokenParamName, "%" + token + "%");
+        whereClause.append(" lower(b." + BusinessPartner.PROPERTY_NAME + ") like lower(:"
+            + tokenParamName + " ) or ");
         tokenIndex++;
       }
       whereClause.delete(whereClause.length() - 3, whereClause.length()).append(")");