IDEMPIERE-1028 Custom form : remove blank item for a list. Accepted patch from Nicolas Micoud.
This commit is contained in:
parent
39ca003c65
commit
bbbb6b7327
|
@ -155,8 +155,7 @@ ContextMenuListener, IZoomableEditor
|
||||||
if (lookup != null)
|
if (lookup != null)
|
||||||
{
|
{
|
||||||
lookup.addListDataListener(this);
|
lookup.addListDataListener(this);
|
||||||
//always need the empty item for zk to work correctly
|
lookup.setMandatory(isMandatory());
|
||||||
lookup.setMandatory(false);
|
|
||||||
|
|
||||||
if ((lookup.getDisplayType() == DisplayType.List && Env.getContextAsInt(Env.getCtx(), "#AD_Role_ID") == 0)
|
if ((lookup.getDisplayType() == DisplayType.List && Env.getContextAsInt(Env.getCtx(), "#AD_Role_ID") == 0)
|
||||||
|| lookup.getDisplayType() != DisplayType.List)
|
|| lookup.getDisplayType() != DisplayType.List)
|
||||||
|
|
Loading…
Reference in New Issue