IDEMPIERE-4293 Excel that download from Info Window is displayed ID Number (#67)

This commit is contained in:
Hideaki Hagiwara 2020-05-19 20:47:27 +09:00 committed by GitHub
parent 52b19fa452
commit 2e065e6e61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 7 deletions

View File

@ -71,6 +71,7 @@ import org.compiere.model.AccessSqlParser.TableInfo;
import org.compiere.model.GridField;
import org.compiere.model.GridFieldVO;
import org.compiere.model.GridWindow;
import org.compiere.model.Lookup;
import org.compiere.model.MInfoColumn;
import org.compiere.model.MInfoWindow;
import org.compiere.model.MLookupFactory;
@ -2688,14 +2689,16 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
{
throw new AdempiereException(e);
}
/* not required - the info window splits the column in key name pairs
GridField gridField = columnInfos[col].getGridField();
Lookup lookup = gridField.getLookup();
if (val != null && lookup != null)
if(val != null && !columnInfos[col].isKeyPairCol()
&& columnInfos[col].getGridField().getLookup() != null)
{
val = lookup.getDisplay(val);
}
*/
Lookup lookup = columnInfos[col].getGridField().getLookup();
if (lookup != null)
{
val = lookup.getDisplay(val);
}
}
return val;
}