From 51a081cbe7dd80640783385be00cb0ef5500255b Mon Sep 17 00:00:00 2001 From: Diego Ruiz <12065321+d-ruiz@users.noreply.github.com> Date: Fri, 12 Feb 2021 15:58:40 +0100 Subject: [PATCH] IDEMPIERE-4701 Env.parseVariable is parsing boolean values wrong (#582) --- org.adempiere.base/src/org/compiere/util/Env.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/util/Env.java b/org.adempiere.base/src/org/compiere/util/Env.java index c91f60bcd4..4a81f38b49 100644 --- a/org.adempiere.base/src/org/compiere/util/Env.java +++ b/org.adempiere.base/src/org/compiere/util/Env.java @@ -1743,7 +1743,10 @@ public final class Env } else { if (colToken != null && colToken.isSecure()) { v = "********"; - } + } else if (colToken != null && colToken.getAD_Reference_ID() == DisplayType.YesNo && v instanceof Boolean) { + v = ((Boolean)v).booleanValue() ? "Y" : "N"; + } + outStr.append(v.toString()); } }