From 350a5d6b2652ca0400b2b22f500f52c5bd0c3cad Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 4 Oct 2013 10:55:48 +0800 Subject: [PATCH] IDEMPIERE-1364 Problem with the Find on any window having "tree" panel. --- .../WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java index 702a9ea97c..a00940eb9b 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADTabpanel.java @@ -1293,7 +1293,8 @@ DataStatusListener, IADTabpanel, IdSpace, IFieldEditorContainer if (recordId <= 0) return; //force on init render - if (TreeUtils.isOnInitRenderPosted(treePanel.getTree()) || treePanel.getTree().getTreechildren() == null) { + if (TreeUtils.isOnInitRenderPosted(treePanel.getTree()) || treePanel.getTree().getTreechildren() == null + || treePanel.getTree().getTreechildren().getItemCount() == 0) { treePanel.getTree().onInitRender(); }