IDEMPIERE-201 Zk: Dropdown with table reference not always refresh for new record

This commit is contained in:
Heng Sin Low 2012-03-20 06:34:28 +08:00
parent 679cf6474c
commit 631a3f3d1c
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}
}