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

@ -343,7 +343,9 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
if (getComponent().getAttribute(QuickGridTabRowRenderer.IS_QUICK_FORM_COMPONENT) != null)
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
if (infoPanel != null)