IDEMPIERE-4448 Autocomplete/Info Window doesn't work correctly with Search fields with Reference - fix reports with ID references (#1108)

This commit is contained in:
Carlos Ruiz 2022-01-03 18:40:05 +01:00 committed by GitHub
parent 950e674a30
commit 0232b2e8f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -664,6 +664,11 @@ public class MLookupFactory
pstmt = null; pstmt = null;
} }
boolean showID = DisplayColumn.equals(TableName+"_ID");
if (showID) {
return getLookup_TableDirEmbed(language, DisplayColumn, BaseTable, BaseColumn);
}
// If it's self referencing then use other alias - teo_sarca [ 1739544 ] // If it's self referencing then use other alias - teo_sarca [ 1739544 ]
if (TableName.equals(BaseTable)) { if (TableName.equals(BaseTable)) {
TableNameAlias = TableName + "1"; TableNameAlias = TableName + "1";