IDEMPIERE-1969:Contextual Menu for Info Window Parameters
fix issue preference don't work with field without default value
This commit is contained in:
parent
329c91397a
commit
59ec9aa29a
|
@ -575,7 +575,7 @@ public class GridField
|
|||
*/
|
||||
public Object getDefaultForPanel (){
|
||||
//default is preference for field > special case > default logic > sql default > data-type default
|
||||
String defaultSeq = "61327";
|
||||
String defaultSeq = "63";
|
||||
return getDefault (MSysConfig.getValue(MSysConfig.ZK_SEQ_DEFAULT_VALUE_PANEL, defaultSeq, Env.getAD_Client_ID(m_vo.ctx)));
|
||||
}
|
||||
|
||||
|
|
|
@ -1289,11 +1289,9 @@ 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.setValue(mField.getDefaultForPanel(), true);
|
||||
}
|
||||
|
||||
mField.setValue(mField.getDefaultForPanel(), true);
|
||||
|
||||
} // addSelectionColumn
|
||||
|
||||
protected void addSearchParameter(Label label, Component fieldEditor) {
|
||||
|
|
Loading…
Reference in New Issue