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

@ -190,12 +190,12 @@ public class WLocationEditor extends WEditor implements EventListener<Event>, Pr
@Override
public void onEvent(Event event) throws Exception {
getComponent().getTextbox().focus();
m_value = ld.getValue();
//
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<Event>, 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<OpenEvent>() {