From bd7d732f872c00cd22fefb3a9541a47f3e15aa91 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 10 Jun 2013 17:58:11 +0800 Subject: [PATCH] DEMPIERE-1016 Tree panel in windows not working. --- .../src/org/adempiere/webui/panel/TreeSearchPanel.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TreeSearchPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TreeSearchPanel.java index 070f1bdde0..870f954283 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TreeSearchPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TreeSearchPanel.java @@ -359,7 +359,10 @@ public class TreeSearchPanel extends Panel implements EventListener, Tree Comboitem item = (Comboitem) comp; String value = item.getLabel(); String type = item.getContent(); - selectTreeitem(value+"."+type); + if (!Util.isEmpty(type)) + selectTreeitem(value+"."+type); + else + selectTreeitem(value); } } }