diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WLocationEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WLocationEditor.java index f1dac7247e..30c2fadee5 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WLocationEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WLocationEditor.java @@ -189,13 +189,13 @@ public class WLocationEditor extends WEditor implements EventListener, Pr @Override public void onEvent(Event event) throws Exception { - getComponent().getTextbox().focus(); - m_value = ld.getValue(); + getComponent().getTextbox().focus(); // if (!ld.isChanged()) return; // Data Binding + m_value = ld.getValue(); int C_Location_ID = 0; if (m_value != null) C_Location_ID = m_value.getC_Location_ID(); @@ -206,7 +206,7 @@ public class WLocationEditor extends WEditor implements EventListener, Pr ValueChangeEvent vc = new ValueChangeEvent(WLocationEditor.this,getColumnName(),null,ii); fireValueChange(vc); } - setValue(ii); + getComponent().setText(m_value != null ? m_value.toString() : null); } }); ld.addEventListener(Events.ON_OPEN, new EventListener() {