From f784d469b4cc1dccd4cb70cfd4ca665407261217 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 23 Apr 2022 13:08:38 +0200 Subject: [PATCH] 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 --- .../src/org/adempiere/webui/editor/WSearchEditor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java index 450b839017..a6c1bdeb41 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/editor/WSearchEditor.java @@ -342,8 +342,10 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value boolean isQuickFormComp = false; 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)