From bdb7675ed16a00b65e9b8a7aa494c1685081999d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 5 Aug 2015 09:19:31 -0500 Subject: [PATCH] IDEMPIERE-2747 Env.parseVariable doesn't work with CreatedBy/UpdatedBy --- org.adempiere.base/src/org/compiere/util/Env.java | 2 +- 1 file changed, 1 insertion(+), 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 dcc4c73031..5d61f14c86 100644 --- a/org.adempiere.base/src/org/compiere/util/Env.java +++ b/org.adempiere.base/src/org/compiere/util/Env.java @@ -1582,7 +1582,7 @@ public final class Env String foreignTable = colToken.getReferenceTableName(); if (v != null) { 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("."); String tableName = null; if (tblIndex > 0)