IDEMPIERE-4701 Env.parseVariable is parsing boolean values wrong (#582)

This commit is contained in:
Diego Ruiz 2021-02-12 15:58:40 +01:00 committed by GitHub
parent 84eff33ebf
commit 51a081cbe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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());
}
}