diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WAccountEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WAccountEditor.java index df35e6344f..d1c6a21614 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WAccountEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WAccountEditor.java @@ -166,6 +166,9 @@ public class WAccountEditor extends WEditor implements ContextMenuListener { pstmt = DB.prepareStatement(sql, null); pstmt.setInt(1, C_AcctSchema_ID); + boolean useSimilarTo = "Y".equals(Env.getContext(Env.getCtx(), "P|IsUseSimilarTo")); + if (useSimilarTo && text.contains("*")) + text = text.replaceAll("\\*", "\\\\*"); pstmt.setString(2, text.toUpperCase()); pstmt.setString(3, text.toUpperCase()); rs = pstmt.executeQuery();