IDEMPIERE-663 Zk: Remove the need of re-query for table editor after user have create a new record. / just add to cache when saving is successful

This commit is contained in:
Carlos Ruiz 2013-03-27 13:44:42 -05:00
parent 602723e986
commit 70ca887d0d
1 changed files with 1 additions and 1 deletions

View File

@ -2243,7 +2243,7 @@ public abstract class PO
m_createNew = false; m_createNew = false;
if (!newRecord) if (!newRecord)
CacheMgt.get().reset(p_info.getTableName()); CacheMgt.get().reset(p_info.getTableName());
else if (get_ID() > 0) else if (get_ID() > 0 && success)
CacheMgt.get().newRecord(p_info.getTableName(), get_ID()); CacheMgt.get().newRecord(p_info.getTableName(), get_ID());
return success; return success;