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:
Carlos Ruiz 2022-04-23 13:08:38 +02:00 committed by GitHub
parent 321a65bd66
commit f784d469b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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)