IDEMPIERE-1198 value in textbox isn't manipulation

This commit is contained in:
Richard Morales 2013-08-04 20:52:39 -05:00
parent a128d9b302
commit 099e1bf880
1 changed files with 4 additions and 2 deletions

View File

@ -466,10 +466,12 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
value = ((Object[])value)[0];
}
if (value == null && getValue() == null)
if (value == null && getValue() == null) {
updated = true;
else if (value != null && value.equals(getValue()))
} else if (value != null && value.equals(getValue())) {
updated = true;
getComponent().setText(lookup.getDisplay(value));
}
if (!updated)
{
setValue(value);