From 6f1aca48a8ffbe151cea27a4c5917c033880583b Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 21 Oct 2019 15:33:05 +0200 Subject: [PATCH] IDEMPIERE-3781 Location Dialog showing incomplete Region list --- org.adempiere.base/src/org/compiere/model/MRegion.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MRegion.java b/org.adempiere.base/src/org/compiere/model/MRegion.java index 903608acb3..55c20ea3bf 100644 --- a/org.adempiere.base/src/org/compiere/model/MRegion.java +++ b/org.adempiere.base/src/org/compiere/model/MRegion.java @@ -56,7 +56,7 @@ public class MRegion extends X_C_Region */ private static void loadAllRegions (Properties ctx) { - s_regions = new CCache(Table_Name, 100); + s_regions.clear(); String sql = "SELECT * FROM C_Region WHERE IsActive='Y'"; Statement stmt = null; ResultSet rs = null; @@ -161,7 +161,7 @@ public class MRegion extends X_C_Region } // getRegions /** Region Cache */ - private static CCache s_regions = null; + private static CCache s_regions = new CCache(Table_Name, Table_Name, 100, 0, false, 0); /** Default Region */ private static MRegion s_default = null; /** Static Logger */