IDEMPIERE-6089 Address refresh issue (#2313)

This commit is contained in:
hengsin 2024-04-15 19:16:47 +08:00 committed by Carlos Ruiz
parent 6ab6878eeb
commit ca6bb3e335
1 changed files with 3 additions and 3 deletions

View File

@ -189,13 +189,13 @@ public class WLocationEditor extends WEditor implements EventListener<Event>, Pr
@Override @Override
public void onEvent(Event event) throws Exception { public void onEvent(Event event) throws Exception {
getComponent().getTextbox().focus(); getComponent().getTextbox().focus();
m_value = ld.getValue();
// //
if (!ld.isChanged()) if (!ld.isChanged())
return; return;
// Data Binding // Data Binding
m_value = ld.getValue();
int C_Location_ID = 0; int C_Location_ID = 0;
if (m_value != null) if (m_value != null)
C_Location_ID = m_value.getC_Location_ID(); C_Location_ID = m_value.getC_Location_ID();
@ -206,7 +206,7 @@ public class WLocationEditor extends WEditor implements EventListener<Event>, Pr
ValueChangeEvent vc = new ValueChangeEvent(WLocationEditor.this,getColumnName(),null,ii); ValueChangeEvent vc = new ValueChangeEvent(WLocationEditor.this,getColumnName(),null,ii);
fireValueChange(vc); fireValueChange(vc);
} }
setValue(ii); getComponent().setText(m_value != null ? m_value.toString() : null);
} }
}); });
ld.addEventListener(Events.ON_OPEN, new EventListener<OpenEvent>() { ld.addEventListener(Events.ON_OPEN, new EventListener<OpenEvent>() {