IDEMPIERE-4425 Find Window improvements (#224)

* IDEMPIERE-4425 Find Window improvements

Fix for printing report parameters - it is printing OPERATOR_EQUAL on reports instead of =

* IDEMPIERE-4425 Find Window improvements

Previous commit broke the find function - must use SQL for Values
This commit is contained in:
Carlos Ruiz 2020-08-24 17:08:07 +02:00 committed by GitHub
parent ab910e0dd2
commit b0fbbb7a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -480,6 +480,7 @@ public class MQuery implements Serializable, Cloneable
public static final String NULL = " IS NULL ";
public static final String MSG_NULL = "OPERATOR_NULL";
/* NOTE: Value is the SQL operator, and Name is the message that appears in Find window and reports */
/** All the Operators */
public static final ValueNamePair[] OPERATORS = new ValueNamePair[] {
new ValueNamePair (EQUAL, MSG_EQUAL), // 0 - EQUAL_INDEX
@ -1331,7 +1332,7 @@ class Restriction implements Serializable
for (int i = 0; i < MQuery.OPERATORS.length; i++)
{
if (MQuery.OPERATORS[i].getValue().equals(Operator))
return MQuery.OPERATORS[i].getName();
return Msg.getMsg(Env.getCtx(), MQuery.OPERATORS[i].getName());
}
return Operator;
} // getInfoOperator