IDEMPIERE-1792:Info Window - Default Logic missing

This commit is contained in:
hieplq 2014-06-05 09:41:48 +07:00
parent 683676abb2
commit aa9dc46a27
1 changed files with 2 additions and 1 deletions

View File

@ -1168,9 +1168,10 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
fieldEditor.addEventListener(Events.ON_OK, this);
mField.addPropertyChangeListener(editor);
if (! Util.isEmpty(mField.getVO().DefaultValue, true)) {
// set default value
mField.addPropertyChangeListener(editor);
mField.setValue(mField.getDefault(), true);
}
} // addSelectionColumn