IDEMPIERE-5614 Advanced Find Window error when searching for Yes/No (#1824)

This commit is contained in:
Carlos Ruiz 2023-05-06 00:59:30 +02:00 committed by GitHub
parent af2d735cc5
commit 4fdbbd5cce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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<Event>, 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);