fixes issue
32940: allow iEquals operator in Custom Query Selectors
The criteria is being sent properly by the client side, but the iEquals operator was not being considered by the CustomQuerySelectorDatasource. It was filtering using a contains criteria instead.
--- a/modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/CustomQuerySelectorDatasource.java Wed May 11 12:36:52 2016 +0200
+++ b/modules/org.openbravo.userinterface.selector/src/org/openbravo/userinterface/selector/CustomQuerySelectorDatasource.java Thu May 12 13:59:40 2016 +0200
@@ -382,6 +382,9 @@
if ("iStartsWith".equals(operator)) {
whereClause = "upper(" + field.getClauseLeftPart() + ") LIKE upper("
+ getTypedParameterAlias(typedParameters, value.replaceAll(" ", "%") + "%") + ")";
+ } else if ("iEquals".equals(operator)) {
+ whereClause = "upper(" + field.getClauseLeftPart() + ") = upper("
+ + getTypedParameterAlias(typedParameters, value) + ")";
} else {
whereClause = "upper(" + field.getClauseLeftPart() + ") LIKE upper("
+ getTypedParameterAlias(typedParameters, "%" + value.replaceAll(" ", "%") + "%") + ")";