From 70ca887d0ded02953bfae9717ad00559fc4e1676 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 27 Mar 2013 13:44:42 -0500 Subject: [PATCH] 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 --- org.adempiere.base/src/org/compiere/model/PO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/PO.java b/org.adempiere.base/src/org/compiere/model/PO.java index a4619d116b..9c398f91c5 100644 --- a/org.adempiere.base/src/org/compiere/model/PO.java +++ b/org.adempiere.base/src/org/compiere/model/PO.java @@ -2243,7 +2243,7 @@ public abstract class PO m_createNew = false; if (!newRecord) 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()); return success;