IDEMPIERE-5679 - Fixing problem using List Type reference on info window columns (#1790)

This commit is contained in:
Vitor Henrique Dos Santos 2023-04-20 03:31:01 -03:00 committed by GitHub
parent 3a01dc8aa9
commit 1a6ca9a7c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,7 @@ import org.compiere.model.MStyle;
import org.compiere.util.Env;
import org.compiere.util.Evaluatee;
import org.compiere.util.KeyNamePair;
import org.compiere.util.ValueNamePair;
import org.zkoss.zhtml.Text;
import org.zkoss.zk.ui.HtmlBasedComponent;
import org.zkoss.zul.Listcell;
@ -124,6 +125,11 @@ public class WInfoWindowListItemRenderer extends WListItemRenderer
KeyNamePair knp = (KeyNamePair)value;
value = knp.getKey();
}
else if(value instanceof ValueNamePair)
{
ValueNamePair vnp = (ValueNamePair)value;
value = vnp.getValue();
}
editor.setValue(value);

View File

@ -2629,6 +2629,13 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
parameters.add(knpData.getKey());
parameters.add(null);
}
else if(data instanceof ValueNamePair)
{
ValueNamePair vnp = (ValueNamePair)data;
parameters.add(vnp.getValue());
parameters.add(null);
parameters.add(null);
}
else
{
parameters.add(data);