IDEMPIERE-3259 Default logic: Add support for lookup of foreign table values / integrate patch from Heng Sin

This commit is contained in:
Carlos Ruiz 2016-12-13 18:26:34 +01:00
parent 060c5a2854
commit 9dc3388216
1 changed files with 1 additions and 1 deletions

View File

@ -792,7 +792,7 @@ public class GridField
if (defStr.equals("@SysDate@")) // System Time
return new Timestamp (System.currentTimeMillis());
else if (defStr.indexOf('@') != -1) // it is a variable
defStr = Env.getContext(m_vo.ctx, m_vo.WindowNo, defStr.replace('@',' ').trim());
defStr = Env.parseContext(m_vo.ctx, m_vo.WindowNo, defStr.trim(), false, false);
else if (defStr.indexOf("'") != -1) // it is a 'String'
defStr = defStr.replace('\'', ' ').trim();