IDEMPIERE-5269 Allow save a record in a read only search field (#1297)
* IDEMPIERE-5269 Allow save a record in a read only search field * IDEMPIERE-5269 integrate patch suggested by Heng Sin
This commit is contained in:
parent
321a65bd66
commit
f784d469b4
|
@ -342,8 +342,10 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
||||||
boolean isQuickFormComp = false;
|
boolean isQuickFormComp = false;
|
||||||
if (getComponent().getAttribute(QuickGridTabRowRenderer.IS_QUICK_FORM_COMPONENT) != null)
|
if (getComponent().getAttribute(QuickGridTabRowRenderer.IS_QUICK_FORM_COMPONENT) != null)
|
||||||
isQuickFormComp = (boolean) getComponent().getAttribute(QuickGridTabRowRenderer.IS_QUICK_FORM_COMPONENT);
|
isQuickFormComp = (boolean) getComponent().getAttribute(QuickGridTabRowRenderer.IS_QUICK_FORM_COMPONENT);
|
||||||
|
|
||||||
if ((getComponent().getText() == null || getComponent().getText().length() == 0) && !isQuickFormComp)
|
if ( (getComponent().getText() == null || getComponent().getText().length() == 0)
|
||||||
|
&& !isQuickFormComp
|
||||||
|
&& isReadWrite())
|
||||||
{
|
{
|
||||||
// open Info window similar to swing client
|
// open Info window similar to swing client
|
||||||
if (infoPanel != null)
|
if (infoPanel != null)
|
||||||
|
|
Loading…
Reference in New Issue