From a44a3a17dfd2e6cc97bc14e080b7aeb05c042101 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 27 Nov 2012 22:40:46 +0800 Subject: [PATCH] IDEMPIERE-491 Caching data can generate problem. Fixed a backward compatibility issue. --- org.adempiere.base/src/org/compiere/util/CCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/util/CCache.java b/org.adempiere.base/src/org/compiere/util/CCache.java index c477a86271..cffe2f4ded 100644 --- a/org.adempiere.base/src/org/compiere/util/CCache.java +++ b/org.adempiere.base/src/org/compiere/util/CCache.java @@ -388,7 +388,7 @@ public class CCache implements CacheInterface, Map, Serializable @Override public int reset(int recordId) { - if (recordId < 0) + if (recordId <= 0) return reset(); V removed = cache.remove(recordId);