IDEMPIERE-5849 Fix PackOut broken with GenericPO after Cache Reset (#2382)
This commit is contained in:
parent
6f4686f9db
commit
9740f2bf18
|
|
@ -26,6 +26,7 @@ import java.math.BigDecimal;
|
|||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.adempiere.util.ServerContextPropertiesWrapper;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.PO;
|
||||
import org.compiere.model.POInfo;
|
||||
|
|
@ -346,7 +347,7 @@ public class GenericPO extends PO implements DocAction {
|
|||
* @author Low Heng Sin
|
||||
*
|
||||
*/
|
||||
class PropertiesWrapper extends Properties {
|
||||
class PropertiesWrapper extends ServerContextPropertiesWrapper {
|
||||
/**
|
||||
* generated serial id
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -584,6 +584,7 @@ public class POInfo implements Serializable
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
CLogger.get().log(Level.WARNING, "Cannot create Lookup for " + m_columns[index].ColumnName + "[" + m_columns[index].AD_Column_ID + "]", e);
|
||||
lookup = null; // cannot create Lookup
|
||||
}
|
||||
return lookup;
|
||||
|
|
|
|||
|
|
@ -309,6 +309,8 @@ public class PoExporter {
|
|||
String lookupColumn = info.getColumnLookup(i).getColumnName();
|
||||
tableName = lookupColumn.substring(0, lookupColumn.indexOf("."));
|
||||
}
|
||||
if (tableName == null)
|
||||
throw new AdempiereException("Could not find the related table for column " + po.get_TableName() + "." + columnName);
|
||||
if ( info.getColumnDisplayType(i) == DisplayType.ChosenMultipleSelectionList
|
||||
|| DisplayType.isMultiID(info.getColumnDisplayType(i))) {
|
||||
addTableReferenceMulti(columnName, tableName, new AttributesImpl());
|
||||
|
|
|
|||
Loading…
Reference in New Issue