IDEMPIERE-4631 Lead window -> NPE GridFieldVO.loadLookupInfo: No LookupInfo for BP_Location_ID (#511)
This commit is contained in:
parent
8cc8445d8d
commit
2cfb699c6f
|
@ -1028,6 +1028,8 @@ public class MLookupFactory
|
|||
private static ArrayList<LookupDisplayColumn> getListIdentifiers(String TableName) {
|
||||
ArrayList<LookupDisplayColumn> list = new ArrayList<LookupDisplayColumn>();
|
||||
MTable table = MTable.get(Env.getCtx(), TableName);
|
||||
if (table == null)
|
||||
return null;
|
||||
for (String idColumnName : table.getIdentifierColumns()) {
|
||||
MColumn column = table.getColumn(idColumnName);
|
||||
LookupDisplayColumn ldc = new LookupDisplayColumn(column.getColumnName(), column.getColumnSQL(true), column.isTranslated(), column.getAD_Reference_ID(), column.getAD_Reference_Value_ID());
|
||||
|
|
|
@ -279,7 +279,7 @@ public class MQuery implements Serializable, Cloneable
|
|||
return "C_BPartner_Location_ID";
|
||||
if (columnName.equals("Account_ID"))
|
||||
return "C_ElementValue_ID";
|
||||
if (columnName.equals("C_LocFrom_ID") || columnName.equals("C_LocTo_ID"))
|
||||
if (columnName.equals("C_LocFrom_ID") || columnName.equals("C_LocTo_ID") || columnName.equals("BP_Location_ID"))
|
||||
return "C_Location_ID";
|
||||
if (columnName.equals("C_UOM_To_ID"))
|
||||
return "C_UOM_ID";
|
||||
|
|
Loading…
Reference in New Issue