From b0fbbb7a16f5b59cb2e6fae18afec4e225500ce1 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 24 Aug 2020 17:08:07 +0200 Subject: [PATCH] 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 --- org.adempiere.base/src/org/compiere/model/MQuery.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MQuery.java b/org.adempiere.base/src/org/compiere/model/MQuery.java index fbdd159203..ddda0af3a4 100644 --- a/org.adempiere.base/src/org/compiere/model/MQuery.java +++ b/org.adempiere.base/src/org/compiere/model/MQuery.java @@ -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