IDEMPIERE-484 Address field issue for a Country with additional fields

This commit is contained in:
Carlos Ruiz 2012-11-09 11:24:26 -05:00
parent faf9c28733
commit c77297c201
1 changed files with 3 additions and 0 deletions

View File

@ -277,6 +277,7 @@ public class MLocation extends X_C_Location implements Comparator<Object>
if (region == null)
{
super.setC_Region_ID(0);
setRegionName(null);
}
else
{
@ -618,6 +619,8 @@ public class MLocation extends X_C_Location implements Comparator<Object>
getCountry();
if (!m_c.isHasRegion())
setC_Region_ID(0);
} else {
setRegionName(null);
}
if (getC_City_ID() <= 0 && getCity() != null && getCity().length() > 0) {
int city_id = DB.getSQLValue(