IDEMPIERE-943 Menu Lookup not showing dup names / fix problem reported by Heng Sin

This commit is contained in:
Richard Morales 2013-06-12 18:25:42 -05:00
parent f4c50410dc
commit b90a6bfef1
1 changed files with 14 additions and 2 deletions

View File

@ -336,7 +336,19 @@ public class TreeSearchPanel extends Panel implements EventListener<Event>, Tree
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))