IDEMPIERE-2747 Env.parseVariable doesn't work with CreatedBy/UpdatedBy
This commit is contained in:
parent
2694d54b71
commit
bdb7675ed1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue