From 631a3f3d1c939ebabb341ea70f1a51c60a541197 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 20 Mar 2012 06:34:28 +0800 Subject: [PATCH] IDEMPIERE-201 Zk: Dropdown with table reference not always refresh for new record --- .../src/org/adempiere/webui/editor/WTableDirEditor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java index aaf0f257f3..8bdd4fdf4f 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WTableDirEditor.java @@ -411,7 +411,8 @@ ContextMenuListener, IZoomableEditor @Override public void dynamicDisplay() { - if ((lookup != null) && (!lookup.isValidated() || !lookup.isLoaded())) + if ((lookup != null) && (!lookup.isValidated() || !lookup.isLoaded() + || (isReadWrite() && lookup.getSize() != getComponent().getItemCount()))) this.actionRefresh(); } }