IDEMPIERE-484 Address field issue for a Country with additional fields
This commit is contained in:
parent
faf9c28733
commit
c77297c201
|
|
@ -277,6 +277,7 @@ public class MLocation extends X_C_Location implements Comparator<Object>
|
||||||
if (region == null)
|
if (region == null)
|
||||||
{
|
{
|
||||||
super.setC_Region_ID(0);
|
super.setC_Region_ID(0);
|
||||||
|
setRegionName(null);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -618,6 +619,8 @@ public class MLocation extends X_C_Location implements Comparator<Object>
|
||||||
getCountry();
|
getCountry();
|
||||||
if (!m_c.isHasRegion())
|
if (!m_c.isHasRegion())
|
||||||
setC_Region_ID(0);
|
setC_Region_ID(0);
|
||||||
|
} else {
|
||||||
|
setRegionName(null);
|
||||||
}
|
}
|
||||||
if (getC_City_ID() <= 0 && getCity() != null && getCity().length() > 0) {
|
if (getC_City_ID() <= 0 && getCity() != null && getCity().length() > 0) {
|
||||||
int city_id = DB.getSQLValue(
|
int city_id = DB.getSQLValue(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue