From b90a6bfef1c607658e0ecdc6242dfb3c51a1f07c Mon Sep 17 00:00:00 2001 From: Richard Morales Date: Wed, 12 Jun 2013 18:25:42 -0500 Subject: [PATCH] IDEMPIERE-943 Menu Lookup not showing dup names / fix problem reported by Heng Sin --- .../adempiere/webui/panel/TreeSearchPanel.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 870f954283..09e247ca58 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 @@ -335,8 +335,20 @@ public class TreeSearchPanel extends Panel implements EventListener, Tree cmbSearch.setText(null); return; } - - selectTreeitem(value); + + for(Component comp : cmbSearch.getChildren()) + { + Comboitem item = (Comboitem) comp; + if (item.getLabel().equals(value)) + { + String type = item.getContent(); + if (!Util.isEmpty(type)) + selectTreeitem(value+"."+type); + else + selectTreeitem(value); + return; + } + } } } else if (event.getName().equals(ON_POST_FIRE_TREE_EVENT))