merge fix from BF [ 1830531 ]

This commit is contained in:
Heng Sin Low 2009-05-18 08:59:44 +00:00
parent 3d5f101627
commit d5b93419a2
1 changed files with 26 additions and 21 deletions

View File

@ -84,6 +84,11 @@ public class WAccountEditor extends WEditor
public void cmd_button() public void cmd_button()
{ {
int C_AcctSchema_ID = Env.getContextAsInt(Env.getCtx(), gridField.getWindowNo(), "C_AcctSchema_ID"); int C_AcctSchema_ID = Env.getContextAsInt(Env.getCtx(), gridField.getWindowNo(), "C_AcctSchema_ID");
// Try to get C_AcctSchema_ID from global context - teo_sarca BF [ 1830531 ]
if (C_AcctSchema_ID <= 0)
{
C_AcctSchema_ID = Env.getContextAsInt(Env.getCtx(), "$C_AcctSchema_ID");
}
WAccountDialog ad = new WAccountDialog (gridField.getHeader(), m_mAccount, C_AcctSchema_ID); WAccountDialog ad = new WAccountDialog (gridField.getHeader(), m_mAccount, C_AcctSchema_ID);
// //
Integer newValue = ad.getValue(); Integer newValue = ad.getValue();