IDEMPIERE-821 Zk: search editor always clear field content when user cancel the info dialog

This commit is contained in:
Heng Sin Low 2013-04-02 17:07:57 +08:00
parent 38bfcb0c7e
commit 927b748ed5
1 changed files with 7 additions and 0 deletions

View File

@ -577,6 +577,13 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
else if (cancelled)
{
if (log.isLoggable(Level.CONFIG)) log.config(getColumnName() + " - Result = null (cancelled)");
if (value != null)
{
if (lookup.getDisplay(value).equals(getComponent().getText()))
{
return;
}
}
actionCombo(null);
}
else