IDEMPIERE-2010 Param requery of MBPartnerLocation.getLocation is useless / based on patch from nmicoud
This commit is contained in:
parent
f8a1d6adfd
commit
fab10a699a
|
@ -131,16 +131,14 @@ public class MBPartnerLocation extends X_C_BPartner_Location {
|
||||||
/**
|
/**
|
||||||
* Get Location/Address
|
* Get Location/Address
|
||||||
*
|
*
|
||||||
* @param requery
|
* @param requery get again the location from DB - please note that if used out of transaction the result is get from the cache
|
||||||
* requery
|
|
||||||
* @return location
|
* @return location
|
||||||
*/
|
*/
|
||||||
public MLocation getLocation(boolean requery) {
|
public MLocation getLocation(boolean requery) {
|
||||||
if (m_location == null)
|
if (requery || m_location == null)
|
||||||
m_location = MLocation.get(getCtx(), getC_Location_ID(),
|
m_location = MLocation.get(getCtx(), getC_Location_ID(), get_TrxName());
|
||||||
get_TrxName());
|
|
||||||
return m_location;
|
return m_location;
|
||||||
} // getLoaction
|
} // getLocation
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String Representation
|
* String Representation
|
||||||
|
|
Loading…
Reference in New Issue