IDEMPIERE-2747 Env.parseVariable doesn't work with CreatedBy/UpdatedBy

This commit is contained in:
Carlos Ruiz 2015-08-05 09:19:31 -05:00
parent 2694d54b71
commit bdb7675ed1
1 changed files with 1 additions and 1 deletions

View File

@ -1582,7 +1582,7 @@ public final class Env
String foreignTable = colToken.getReferenceTableName(); String foreignTable = colToken.getReferenceTableName();
if (v != null) { if (v != null) {
if (format != null && format.length() > 0) { if (format != null && format.length() > 0) {
if (v instanceof Integer && (Integer) v > 0 && token.endsWith("_ID")) { if (v instanceof Integer && (Integer) v > 0 && !Util.isEmpty(foreignTable)) {
int tblIndex = format.indexOf("."); int tblIndex = format.indexOf(".");
String tableName = null; String tableName = null;
if (tblIndex > 0) if (tblIndex > 0)