From fa4343d2ad22259dada4a8c62ea7323fe63afa03 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 21 Mar 2008 17:22:36 +0000 Subject: [PATCH] [ adempiere-Bugs-1921691 ] Issue with cache in 2Pack - missout one. --- base/src/org/adempiere/pipo/IDFinder.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/src/org/adempiere/pipo/IDFinder.java b/base/src/org/adempiere/pipo/IDFinder.java index c525aa9756..a4b54fae5f 100644 --- a/base/src/org/adempiere/pipo/IDFinder.java +++ b/base/src/org/adempiere/pipo/IDFinder.java @@ -88,7 +88,8 @@ public class IDFinder { } //keep in cache - idCache.put(key.toString(), id); + if (id > 0) + idCache.put(key.toString(), id); return id; }