From 4fdbbd5cceb8237631c5ada0696a9efcec1c86c2 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 6 May 2023 00:59:30 +0200 Subject: [PATCH] IDEMPIERE-5614 Advanced Find Window error when searching for Yes/No (#1824) --- .../WEB-INF/src/org/adempiere/webui/window/FindWindow.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java index 506a030486..73e50ba888 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java @@ -72,6 +72,7 @@ import org.adempiere.webui.editor.WNumberEditor; import org.adempiere.webui.editor.WPaymentEditor; import org.adempiere.webui.editor.WStringEditor; import org.adempiere.webui.editor.WTableDirEditor; +import org.adempiere.webui.editor.WYesNoEditor; import org.adempiere.webui.editor.WebEditorFactory; import org.adempiere.webui.event.DialogEvents; import org.adempiere.webui.event.ValueChangeEvent; @@ -1842,6 +1843,8 @@ public class FindWindow extends Window implements EventListener, ValueCha else if (eventTarget.getId().equals(listColumn.getId()) || eventTarget.getId().equals(listOperator.getId())) { addRowEditor(componentFrom, (ListCell)row.getFellow("cellQueryFrom"+row.getId())); + if (editorFrom instanceof WYesNoEditor) + ((ListCell)row.getFellow("cellQueryFrom"+row.getId())).setAttribute("value", editorFrom.getValue()); if (editorTo != null && editorTo.getGridField() != null && DisplayType.isDate(editorTo.getGridField().getDisplayType())) { Div div = createDateRangeWrapper(editorFrom, editorTo);