IDEMPIERE-943 Menu Lookup not showing dup names / fix problem reported by Heng Sin
This commit is contained in:
parent
f4c50410dc
commit
b90a6bfef1
|
@ -335,8 +335,20 @@ public class TreeSearchPanel extends Panel implements EventListener<Event>, Tree
|
||||||
cmbSearch.setText(null);
|
cmbSearch.setText(null);
|
||||||
return;
|
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))
|
else if (event.getName().equals(ON_POST_FIRE_TREE_EVENT))
|
||||||
|
|
Loading…
Reference in New Issue