IDEMPIERE-3781 Location Dialog showing incomplete Region list

This commit is contained in:
Carlos Ruiz 2019-10-21 15:33:05 +02:00
parent a574294e33
commit 6f1aca48a8
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public class MRegion extends X_C_Region
*/
private static void loadAllRegions (Properties ctx)
{
s_regions = new CCache<String,MRegion>(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<String,MRegion> s_regions = null;
private static CCache<String,MRegion> s_regions = new CCache<String,MRegion>(Table_Name, Table_Name, 100, 0, false, 0);
/** Default Region */
private static MRegion s_default = null;
/** Static Logger */